src/Admin/AdminPageHelper.php
public function adminUpdateOptions()
    {
        if (isset($_GET['settings']) && $_GET['settings'] == $this->settingsName) {
            $cleanPost = $_POST;
            if (function_exists('wp_magic_quotes')) {
                $cleanPost = array_map('stripslashes_deep', $cleanPost);
            }
            $options = $cleanPost[$this->settingsName];
            $options = $this->onSanitizeOptions($options);
            update_site_option($this->settingsName, $options);
            wp_redirect(network_admin_url('settings.php?updated=true&page=' . $this->settingsName));
            exit();
        }
    }
public function adminUpdateOptions()
    {
        if (isset($_GET['settings']) && $_GET['settings'] == $this->settingsName) {
            $cleanPost = $_POST;
            if (function_exists('wp_magic_quotes')) {
                $cleanPost = array_map('stripslashes_deep', $cleanPost);
            }
            $options = $cleanPost[$this->settingsName];
            $options = $this->onSanitizeOptions($options);
            update_site_option($this->settingsName, $options);
            wp_redirect(network_admin_url('settings.php?updated=true&page=' . $this->settingsName));
            exit();
        }
    }
public function adminUpdateOptions ( ) { if ( isset ( $ _GET [ 'settings' ] ) && $ _GET [ 'settings' ] == $ this -> settingsName ) { $ cleanPost = $ _POST ; if ( function_exists ( 'wp_magic_quotes' ) ) { $ cleanPost = array_map ( 'stripslashes_deep' , $ cleanPost ) ; } $ options = $ cleanPost [ $ this -> settingsName ] ; $ options = $ this -> onSanitizeOptions ( $ options ) ; update_site_option ( $ this -> settingsName , $ options ) ; wp_redirect ( network_admin_url ( 'settings.php?updated=true&page=' . $ this -> settingsName ) ) ; exit ( ) ; } }
Used for network settings page
Used for network settings page