X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/af50974463450c98503e763a7836a50e260461a9..refs/tags/wordpress-4.4:/wp-admin/network/settings.php diff --git a/wp-admin/network/settings.php b/wp-admin/network/settings.php index d3d8584f..cd8e251d 100644 --- a/wp-admin/network/settings.php +++ b/wp-admin/network/settings.php @@ -17,32 +17,11 @@ if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); if ( ! current_user_can( 'manage_network_options' ) ) - wp_die( __( 'You do not have permission to access this page.' ) ); + wp_die( __( 'You do not have permission to access this page.' ), 403 ); $title = __( 'Network Settings' ); $parent_file = 'settings.php'; -/** - * Print JavaScript in the header on the Network Settings screen. - * - * @since 4.1.0 -*/ -function network_settings_add_js() { -?> - -add_help_tab( array( @@ -61,7 +40,7 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on Network Settings') . '

' . + '

' . __('Documentation on Network Settings') . '

' . '

' . __('Support Forums') . '

' ); @@ -114,15 +93,15 @@ if ( $_POST ) { include( ABSPATH . 'wp-admin/admin-header.php' ); if ( isset( $_GET['updated'] ) ) { - ?>

-

+

-

+

@@ -134,14 +113,14 @@ if ( isset( $_GET['updated'] ) ) {
- -

+ +

-

+

@@ -151,15 +130,22 @@ if ( isset( $_GET['updated'] ) ) { $reg = get_site_option( 'registration' ); ?> @@ -184,8 +170,8 @@ if ( isset( $_GET['updated'] ) ) { @@ -196,9 +182,9 @@ if ( isset( $_GET['updated'] ) ) { @@ -207,24 +193,24 @@ if ( isset( $_GET['updated'] ) ) {
+
+


-

- NOBLOGREDIRECT in wp-config.php to a URL you will redirect visitors to if they visit a non-existent site.' ); - ?> -

+ '; + /* translators: 1: NOBLOGREDIRECT 2: wp-config.php */ + printf( __( 'If registration is disabled, please set %1$s in %2$s to a URL you will redirect visitors to if they visit a non-existent site.' ), + 'NOBLOGREDIRECT', + 'wp-config.php' + ); + echo '

'; + } ?> +
- " size="45" /> -

+ " size="45" /> +

- -

+

- -

+

-

+

@@ -232,9 +218,9 @@ if ( isset( $_GET['updated'] ) ) { @@ -242,9 +228,9 @@ if ( isset( $_GET['updated'] ) ) { @@ -252,9 +238,9 @@ if ( isset( $_GET['updated'] ) ) { @@ -262,9 +248,9 @@ if ( isset( $_GET['updated'] ) ) { @@ -272,8 +258,8 @@ if ( isset( $_GET['updated'] ) ) { @@ -281,30 +267,43 @@ if ( isset( $_GET['updated'] ) ) {
- -

+

- -

+

- -

+

- -

+

- -

+

- -

+ +

- -

+ +

-

+

- + - +
-
+ +

+ +

+
' ); ?> + ' ); ?> +

+ +

+
@@ -313,7 +312,7 @@ if ( isset( $_GET['updated'] ) ) { $translations = wp_get_available_translations(); if ( ! empty( $languages ) || ! empty( $translations ) ) { ?> -

+

@@ -340,7 +339,7 @@ if ( isset( $_GET['updated'] ) ) { } ?> -

+

@@ -363,9 +362,15 @@ if ( isset( $_GET['updated'] ) ) { * @param array $admin_menus The menu items available. */ $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); + $fieldset_end = ''; + if ( count( (array) $menu_items ) > 1 ) { + echo '
' . __( 'Enable menus' ) . ''; + $fieldset_end = '
'; + } foreach ( (array) $menu_items as $key => $val ) { echo "
"; } + echo $fieldset_end; ?>