Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-admin.php

    r15135 r16847  
    1010require_once( './admin.php' );
    1111
    12 if ( !is_multisite() )
    13     wp_die( __( 'Multisite support is not enabled.' ) );
    14 
    15 if ( ! current_user_can( 'manage_network' ) )
    16     wp_die( __( 'You do not have permission to access this page.' ) );
    17 
    18 $title = __( 'Network Admin' );
    19 $parent_file = 'ms-admin.php';
    20 
    21 add_contextual_help($current_screen,
    22     '<p>' . __('Until WordPress 3.0, running multiple sites required using WordPress MU instead of regular WordPress. In version 3.0, these applications have merged. If you are a former MU user, you should be aware of the following changes:') . '</p>' .
    23     '<ul><li>' . __('Site Admin is now Super Admin (we highly encourage you to get yourself a cape!).') . '</li>' .
    24     '<li>' . __('Blogs are now called Sites; Site is now called Network.') . '</li></ul>' .
    25     '<p>' . __('This screen provides the network administrator with links to the screens for Sites and Users to either create a new site or user, or to search existing users and sites. Those screens are also accessible through the left-hand navigation in the Super Admin section.') . '</p>' .
    26     '<p><strong>' . __('For more information:') . '</strong></p>' .
    27     '<p>' . __('<a href="http://codex.wordpress.org/Super_Admin_Super_Admin_Menu" target="_blank">Documentation on Super Admin Menu</a>') . '</p>' .
    28     '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    29 );
    30 
    31 require_once( './admin-header.php' );
    32 
    33 $c_users = get_user_count();
    34 $c_blogs = get_blog_count();
    35 
    36 $user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );
    37 $blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) );
    38 
    39 $sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );
     12wp_redirect( network_admin_url() );
     13exit;
    4014?>
    41 
    42 <div class="wrap">
    43     <?php screen_icon(); ?>
    44     <h2><?php echo esc_html( $title ); ?></h2>
    45 
    46     <ul class="subsubsub">
    47     <li><a href="ms-sites.php#form-add-site"><?php _e( 'Create a New Site' ); ?></a> |</li>
    48     <li><a href="ms-users.php#form-add-user"><?php _e( 'Create a New User' ); ?></a></li>
    49     </ul>
    50     <br class="clear" />
    51 
    52     <p class="youhave"><?php echo $sentence; ?></p>
    53     <?php do_action( 'wpmuadminresult', '' ); ?>
    54 
    55     <form name="searchform" action="ms-users.php" method="get">
    56         <p>
    57             <input type="hidden" name="action" value="users" />
    58             <input type="text" name="s" value="" size="17" />
    59             <input class="button" type="submit" name="submit" value="<?php esc_attr_e( 'Search Users' ); ?>" />
    60         </p>
    61     </form>
    62 
    63     <form name="searchform" action="ms-sites.php" method="get">
    64         <p>
    65             <input type="hidden" name="action" value="blogs" />
    66             <input type="hidden" name="searchaction" value="name" />
    67             <input type="text" name="s" value="" size="17" />
    68             <input class="button" type="submit" name="blog_name" value="<?php esc_attr_e( 'Search Sites' ); ?>" />
    69         </p>
    70     </form>
    71 
    72     <?php do_action( 'mu_rightnow_end' ); ?>
    73     <?php do_action( 'mu_activity_box_end' ); ?>
    74 </div>
    75 
    76 <?php include( './admin-footer.php' ); ?>
Note: See TracChangeset for help on using the changeset viewer.