Changeset 12609
- Timestamp:
- 01/06/2010 08:19:35 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-admin.php
r12605 r12609 1 1 <?php 2 2 require_once('admin.php'); 3 4 if ( !is_multisite() ) 5 wp_die( __('Multisite support is not enabled.') ); 3 6 4 7 $title = __('WordPress MU › Admin'); … … 12 15 require_once('admin-header.php'); 13 16 14 if ( is_site_admin() == false ) {17 if ( is_site_admin() == false ) { 15 18 wp_die( __('You do not have permission to access this page.') ); 16 19 } -
trunk/wp-admin/ms-edit.php
r12605 r12609 1 1 <?php 2 2 require_once('admin.php'); 3 4 if ( !is_multisite() ) 5 wp_die( __('Multisite support is not enabled.') ); 6 3 7 if( is_site_admin() == false ) { 4 8 wp_die( __('You do not have permission to access this page.') ); -
trunk/wp-admin/ms-options.php
r12605 r12609 1 1 <?php 2 2 require_once('admin.php'); 3 4 if ( !is_multisite() ) 5 wp_die( __('Multisite support is not enabled.') ); 6 3 7 $title = __('WordPress MU › Admin › Site Options'); 4 8 $parent_file = 'wpmu-admin.php'; -
trunk/wp-admin/ms-sites.php
r12605 r12609 1 1 <?php 2 2 require_once('admin.php'); 3 4 if ( !is_multisite() ) 5 wp_die( __('Multisite support is not enabled.') ); 3 6 4 7 $title = __('WordPress MU › Admin › Blogs'); -
trunk/wp-admin/ms-upgrade-site.php
r12605 r12609 1 1 <?php 2 2 require_once('admin.php'); 3 4 if ( !is_multisite() ) 5 wp_die( __('Multisite support is not enabled.') ); 6 3 7 require_once( ABSPATH . WPINC . '/http.php' ); 4 8 … … 7 11 require_once('admin-header.php'); 8 12 9 if ( is_site_admin() == false ) {13 if ( is_site_admin() == false ) { 10 14 wp_die( __('You do not have permission to access this page.') ); 11 15 } -
trunk/wp-admin/ms-users.php
r12605 r12609 1 1 <?php 2 2 require_once('admin.php'); 3 4 if ( !is_multisite() ) 5 wp_die( __('Multisite support is not enabled.') ); 3 6 4 7 $title = __('WordPress MU › Admin › Users'); -
trunk/wp-settings.php
r12393 r12609 321 321 if ( defined('WP_ADMIN') ) 322 322 return WP_ADMIN; 323 return false; 324 } 325 326 /** 327 * Whether Multisite support is enabled 328 * 329 * @since 3.0 330 * 331 * @return bool True if multisite is enabled, false otherwise. 332 */ 333 function is_multisite() { 334 if ( defined('MULTISITE') ) 335 return true; 336 323 337 return false; 324 338 } … … 389 403 require (ABSPATH . WPINC . '/widgets.php'); 390 404 405 if ( is_multisite() ) { 406 require_once( ABSPATH . WPINC . '/ms-functions.php' ); 407 require_once( ABSPATH . WPINC . '/ms-default-filters.php' ); 408 } 409 391 410 if ( !defined('WP_CONTENT_URL') ) 392 411 define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
Note: See TracChangeset
for help on using the changeset viewer.