X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/849f15aeed7a5e39314057bdc0064d8edd60dd7d..e3ff8f35458a959c1879c0a4976701ed8dcfe651:/wp-admin/network/settings.php diff --git a/wp-admin/network/settings.php b/wp-admin/network/settings.php index d3d8584f..5d81cdf3 100644 --- a/wp-admin/network/settings.php +++ b/wp-admin/network/settings.php @@ -13,36 +13,12 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); /** WordPress Translation Install API */ require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); -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( __( 'Sorry, you are not allowed 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,8 +37,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

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

' . - '

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

' . - '

' . __('Support Forums') . '

' + '

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

' . + '

' . __('Support Forums') . '

' ); if ( $_POST ) { @@ -83,6 +59,7 @@ if ( $_POST ) { 'first_post', 'first_page', 'first_comment', 'first_comment_url', 'first_comment_author', 'welcome_email', 'welcome_user_email', 'fileupload_maxk', 'global_terms_enabled', 'illegal_names', 'limited_email_domains', 'banned_email_domains', 'WPLANG', 'admin_email', + 'first_comment_email', ); // Handle translation install. @@ -114,34 +91,34 @@ if ( $_POST ) { include( ABSPATH . 'wp-admin/admin-header.php' ); if ( isset( $_GET['updated'] ) ) { - ?>

-

+

-

+

- +
- -

+ +

-

+

@@ -151,15 +128,22 @@ if ( isset( $_GET['updated'] ) ) { $reg = get_site_option( 'registration' ); ?> @@ -184,8 +168,8 @@ if ( isset( $_GET['updated'] ) ) { @@ -196,9 +180,9 @@ if ( isset( $_GET['updated'] ) ) { @@ -207,24 +191,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 +216,9 @@ if ( isset( $_GET['updated'] ) ) { @@ -242,9 +226,9 @@ if ( isset( $_GET['updated'] ) ) { @@ -252,9 +236,9 @@ if ( isset( $_GET['updated'] ) ) { @@ -262,9 +246,9 @@ if ( isset( $_GET['updated'] ) ) { @@ -272,39 +256,67 @@ if ( isset( $_GET['updated'] ) ) { + + + +
- -

+

- -

+

- -

+

- -

+

- -

+

- -

+ +

+ +

+ +

+
- -

+ +

-

+

- + - +
-
+ +

+ +

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

+ +

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

+

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

+

@@ -348,7 +360,7 @@ if ( isset( $_GET['updated'] ) ) { __( '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; ?>