minor fixes to populate_options(), UI tweaks, see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12920 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b78a8cd218
commit
454cf82301
|
@ -767,7 +767,8 @@ function choose_primary_blog() {
|
||||||
?>
|
?>
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e('Primary Blog'); ?></th>
|
<?php /* translators: My sites label */ ?>
|
||||||
|
<th scope="row"><?php _e('Primary Site'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
$all_blogs = get_blogs_of_user( $current_user->ID );
|
$all_blogs = get_blogs_of_user( $current_user->ID );
|
||||||
|
|
|
@ -180,7 +180,7 @@ CREATE TABLE $wpdb->usermeta (
|
||||||
* @uses $wp_db_version
|
* @uses $wp_db_version
|
||||||
*/
|
*/
|
||||||
function populate_options() {
|
function populate_options() {
|
||||||
global $wpdb, $wp_db_version;
|
global $wpdb, $wp_db_version, $current_site;
|
||||||
|
|
||||||
$guessurl = wp_guess_url();
|
$guessurl = wp_guess_url();
|
||||||
|
|
||||||
|
@ -196,7 +196,8 @@ function populate_options() {
|
||||||
$options = array(
|
$options = array(
|
||||||
'siteurl' => $guessurl,
|
'siteurl' => $guessurl,
|
||||||
'blogname' => __('My Blog'),
|
'blogname' => __('My Blog'),
|
||||||
'blogdescription' => __('Just another WordPress weblog'),
|
/* translators: blog tagline */
|
||||||
|
'blogdescription' => __('Just another WordPress site'),
|
||||||
'users_can_register' => 0,
|
'users_can_register' => 0,
|
||||||
'admin_email' => 'you@example.com',
|
'admin_email' => 'you@example.com',
|
||||||
'start_of_week' => 1,
|
'start_of_week' => 1,
|
||||||
|
@ -319,6 +320,7 @@ function populate_options() {
|
||||||
|
|
||||||
// 3.0 multisite
|
// 3.0 multisite
|
||||||
if ( is_multisite() ) {
|
if ( is_multisite() ) {
|
||||||
|
/* translators: blog tagline */
|
||||||
$options[ 'blogdescription' ] = sprintf(__('Just another %s site'), $current_site->site_name );
|
$options[ 'blogdescription' ] = sprintf(__('Just another %s site'), $current_site->site_name );
|
||||||
$options[ 'permalink_structure' ] = '/%year%/%monthnum%/%day%/%postname%/';
|
$options[ 'permalink_structure' ] = '/%year%/%monthnum%/%day%/%postname%/';
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,9 +33,11 @@ if ( is_multisite() ) {
|
||||||
|
|
||||||
if ( is_multisite() && is_super_admin() ) {
|
if ( is_multisite() && is_super_admin() ) {
|
||||||
$menu[1] = array( '', 'read', 'separator0', '', 'wp-menu-separator' );
|
$menu[1] = array( '', 'read', 'separator0', '', 'wp-menu-separator' );
|
||||||
$menu[2] = array(__('Site Admin'), '10', 'ms-admin.php', '', 'menu-top menu-top-first', 'menu-site', 'div');
|
/* translators: Network menu item */
|
||||||
|
$menu[2] = array(__('Network'), '10', 'ms-admin.php', '', 'menu-top menu-top-first', 'menu-site', 'div');
|
||||||
$submenu[ 'ms-admin.php' ][1] = array( __('Admin'), 'super_admin', 'ms-admin.php' );
|
$submenu[ 'ms-admin.php' ][1] = array( __('Admin'), 'super_admin', 'ms-admin.php' );
|
||||||
$submenu[ 'ms-admin.php' ][5] = array( __('Blogs'), 'super_admin', 'ms-sites.php' );
|
/* translators: Sites menu item */
|
||||||
|
$submenu[ 'ms-admin.php' ][5] = array( __('Sites'), 'super_admin', 'ms-sites.php' );
|
||||||
$submenu[ 'ms-admin.php' ][10] = array( __('Users'), 'super_admin', 'ms-users.php' );
|
$submenu[ 'ms-admin.php' ][10] = array( __('Users'), 'super_admin', 'ms-users.php' );
|
||||||
$submenu[ 'ms-admin.php' ][20] = array( __('Themes'), 'super_admin', 'ms-themes.php' );
|
$submenu[ 'ms-admin.php' ][20] = array( __('Themes'), 'super_admin', 'ms-themes.php' );
|
||||||
$submenu[ 'ms-admin.php' ][25] = array( __('Options'), 'super_admin', 'ms-options.php' );
|
$submenu[ 'ms-admin.php' ][25] = array( __('Options'), 'super_admin', 'ms-options.php' );
|
||||||
|
|
Loading…
Reference in New Issue