Submit
Path:
~
/
home
/
getwphos
/
www
/
shellfish
/
wp-content
/
plugins
/
redux-framework
/
redux-core
/
inc
/
classes
/
File Content:
class-redux-network.php
<?php /** * Redux Network Class * * @class Redux_Network * @version 4.0.0 * @package Redux Framework/Classes */ defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'Redux_Network', false ) ) { /** * Class Redux_Network */ class Redux_Network extends Redux_Class { /** * Redux_Network constructor. * * @param object $redux ReduxFramework pointer. */ public function __construct( $redux ) { parent::__construct( $redux ); if ( 'network' === $redux->args['database'] && $redux->args['network_admin'] ) { add_action( 'network_admin_edit_redux_' . $redux->args['opt_name'], array( $this, 'save_network_page', ), 10, 0 ); // phpcs:ignore Generic.Strings.UnnecessaryStringConcat add_action( 'admin' . '_bar' . '_menu', array( $this, 'network_admin_bar' ), 999 ); } } /** * Add node to network admin bar. * * @param object $wp_admin_bar Admin bar. */ public function network_admin_bar( $wp_admin_bar ) { $core = $this->core(); $args = array( 'id' => $core->args['opt_name'] . '_network_admin', 'title' => $core->args['menu_title'], 'parent' => 'network-admin', 'href' => network_admin_url( 'settings.php' ) . '?page=' . $core->args['page_slug'], 'meta' => array( 'class' => 'redux-network-admin' ), ); $wp_admin_bar->add_node( $args ); } /** * Saves network options. */ public function save_network_page() { $core = $this->core(); if ( isset( $_POST[ $core->args['opt_name'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification $opt_name = sanitize_text_field( wp_unslash( $_POST[ $core->args['opt_name'] ] ) ); // phpcs:ignore WordPress.Security.NonceVerification } $data = $core->options_class->validate_options( $opt_name ); if ( ! empty( $data ) ) { $core->options_class->set( $data ); } wp_safe_redirect( add_query_arg( array( 'page' => $core->args['page_slug'], 'updated' => 'true', ), network_admin_url( 'settings.php' ) ) ); exit(); } } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
class-redux-admin-notices.php
6703 bytes
0644
class-redux-ajax-save.php
6166 bytes
0644
class-redux-ajax-select2.php
3027 bytes
0644
class-redux-ajax-typography.php
1343 bytes
0644
class-redux-api.php
53888 bytes
0644
class-redux-args.php
11805 bytes
0644
class-redux-autoloader.php
2116 bytes
0644
class-redux-cdn.php
9937 bytes
0644
class-redux-class.php
1142 bytes
0644
class-redux-colors.php
11587 bytes
0644
class-redux-enqueue.php
19925 bytes
0644
class-redux-extension-abstract.php
6312 bytes
0644
class-redux-extensions.php
2236 bytes
0644
class-redux-field.php
5214 bytes
0644
class-redux-filesystem.php
29712 bytes
0644
class-redux-functions-ex.php
15919 bytes
0644
class-redux-functions.php
8827 bytes
0644
class-redux-helpers.php
37617 bytes
0644
class-redux-i18n.php
1313 bytes
0644
class-redux-installer-muter.php
506 bytes
0644
class-redux-instances.php
2831 bytes
0644
class-redux-network.php
2098 bytes
0644
class-redux-options-constructor.php
33772 bytes
0644
class-redux-options-defaults.php
6689 bytes
0644
class-redux-output.php
14619 bytes
0644
class-redux-page-render.php
37544 bytes
0644
class-redux-panel.php
14345 bytes
0644
class-redux-path.php
568 bytes
0644
class-redux-required.php
8692 bytes
0644
class-redux-sanitize.php
3778 bytes
0644
class-redux-thirdparty-fixes.php
3678 bytes
0644
class-redux-transients.php
844 bytes
0644
class-redux-validate.php
1560 bytes
0644
class-redux-validation.php
8427 bytes
0644
class-redux-wordpress-data.php
18511 bytes
0644
index.php
79 bytes
0644
N4ST4R_ID | Naxtarrr