Network admin multisite checks and docs. see #14435.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-11-10 14:27:15 +00:00
parent a1c4c4789f
commit f269b75d7b
25 changed files with 91 additions and 33 deletions

View File

@ -3,13 +3,14 @@
* WordPress Network Administration Bootstrap
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
define('WP_NETWORK_ADMIN', TRUE);
define( 'WP_NETWORK_ADMIN', TRUE );
require_once( dirname(dirname(__FILE__)) . '/admin.php');
/** Load WordPress Administration Bootstrap */
require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );

View File

@ -7,6 +7,7 @@
* @since 3.0.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )

View File

@ -3,10 +3,11 @@
* Handle default network dashboard widgets options AJAX.
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require( '../index-extra.php' );

View File

@ -7,11 +7,11 @@
* @since 3.0.0
*/
/** Load WordPress Bootstrap */
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
/** Load WordPress dashboard API */
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
if ( !is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );

View File

@ -3,7 +3,7 @@
* Build Network Administration Menu.
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/

View File

@ -3,10 +3,14 @@
* Plugin editor network administration panel.
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../plugin-editor.php' );

View File

@ -3,10 +3,14 @@
* Install plugin network administration panel.
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../plugin-install.php' );

View File

@ -3,10 +3,14 @@
* Network Plugins administration panel.
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../plugins.php' );

View File

@ -3,10 +3,14 @@
* User profile network administration panel.
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../profile.php' );

View File

@ -7,6 +7,7 @@
* @since 3.0.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )

View File

@ -1,15 +1,14 @@
<?php
/**
* Edit Site Info Administration Screen
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );

View File

@ -1,15 +1,14 @@
<?php
/**
* Add Site Administration Screen
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );

View File

@ -1,15 +1,14 @@
<?php
/**
* Edit Site Options Administration Screen
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );

View File

@ -3,12 +3,16 @@
* Edit Site Themes Administration Screen
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
$wp_list_table = get_list_table('WP_MS_Themes_List_Table');
$wp_list_table->check_permissions();

View File

@ -1,15 +1,14 @@
<?php
/**
* Edit Site Users Administration Screen
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );

View File

@ -7,6 +7,7 @@
* @since 3.0.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )

View File

@ -3,10 +3,14 @@
* Theme editor network administration panel.
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../theme-editor.php' );

View File

@ -3,10 +3,14 @@
* Install theme network administration panel.
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../theme-install.php' );

View File

@ -7,8 +7,12 @@
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
$wp_list_table = get_list_table('WP_MS_Themes_List_Table');
$wp_list_table->check_permissions();

View File

@ -1,5 +1,16 @@
<?php
/**
* Updates network administration panel.
*
* @package WordPress
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../update-core.php' );

View File

@ -3,10 +3,14 @@
* Update/Install Plugin/Theme network administration panel.
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../update.php' );

View File

@ -7,9 +7,10 @@
* @since 3.0.0
*/
require_once('./admin.php');
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( !is_multisite() )
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require_once( ABSPATH . WPINC . '/http.php' );

View File

@ -3,10 +3,14 @@
* Edit user network administration panel.
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
require( '../user-edit.php' );

View File

@ -1,15 +1,14 @@
<?php
/**
* Add Site Administration Screen
*
* @package WordPress
* @subpackage Administration
* @subpackage Multisite
* @since 3.1.0
*/
/** Load WordPress Administration Bootstrap */
require_once('./admin.php');
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );

View File

@ -7,8 +7,12 @@
* @since 3.0.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) );
$wp_list_table = get_list_table('WP_MS_Users_List_Table');
$wp_list_table->check_permissions();
$wp_list_table->prepare_items();
@ -72,6 +76,8 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
?>
</h2>
<?php $wp_list_table->views(); ?>
<form action="" method="get" class="search-form">
<p class="search-box">
<input type="text" name="s" value="<?php echo esc_attr( $usersearch ); ?>" class="search-input" id="user-search-input" />