Permalink
Browse files

Network admin multisite checks and docs. see #14435.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent a1c4c47 commit f269b75d7ba86329502ba1530c73d3b966a29a84 nacin committed Nov 10, 2010
@@ -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.' ) );
@@ -7,6 +7,7 @@
* @since 3.0.0
*/
+/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
@@ -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' );
@@ -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.' ) );
@@ -3,7 +3,7 @@
* Build Network Administration Menu.
*
* @package WordPress
- * @subpackage Administration
+ * @subpackage Multisite
* @since 3.1.0
*/
@@ -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' );
@@ -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' );
@@ -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' );
@@ -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' );
@@ -7,6 +7,7 @@
* @since 3.0.0
*/
+/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
@@ -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.' ) );
@@ -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.' ) );
@@ -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.' ) );
@@ -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();
@@ -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.' ) );
@@ -7,6 +7,7 @@
* @since 3.0.0
*/
+/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
if ( ! is_multisite() )
@@ -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' );
@@ -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' );
@@ -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();
@@ -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' );
@@ -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' );
@@ -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' );
@@ -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' );
@@ -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.' ) );
@@ -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 @@
?>
</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" />

0 comments on commit f269b75

Please sign in to comment.