diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index 457aa9fc19..e341c61bbc 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -197,7 +197,8 @@ .welcome-panel .welcome-icon:before, #dashboard_right_now li a:before, -#dashboard_right_now li span:before { +#dashboard_right_now li span:before, +#dashboard_right_now .search-engines-info:before { color: #606a73; font: normal 20px/1 dashicons; speak: none; @@ -260,6 +261,7 @@ /* Right Now specific Icons styles */ +#dashboard_right_now .search-engines-info:before, #dashboard_right_now li a:before, #dashboard_right_now li > span:before { /* get only the first level span to exclude screen-reader-text in mu-storage */ content: "\f159"; /* generic icon for items added by CPTs ? */ @@ -292,6 +294,10 @@ content: "\f153"; } +#dashboard_right_now .search-engines-info:before { + content: "\f348"; +} + /* Dashboard WordPress events */ .community-events-errors { @@ -537,6 +543,10 @@ body #dashboard-widgets .postbox form .submit { margin-left: 5px; } +#dashboard_right_now p.search-engines-info { + margin: 1em 0; +} + .mu-storage { overflow: hidden; } diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php index e15deb99d2..248ebab8fe 100644 --- a/src/wp-admin/includes/class-wp-debug-data.php +++ b/src/wp-admin/includes/class-wp-debug-data.php @@ -40,6 +40,7 @@ class WP_Debug_Data { $permalink_structure = get_option( 'permalink_structure' ); $is_ssl = is_ssl(); $users_can_register = get_option( 'users_can_register' ); + $blog_public = get_option( 'blog_public' ); $default_comment_status = get_option( 'default_comment_status' ); $is_multisite = is_multisite(); $core_version = get_bloginfo( 'version' ); @@ -103,6 +104,11 @@ class WP_Debug_Data { 'value' => $users_can_register ? __( 'Yes' ) : __( 'No' ), 'debug' => $users_can_register, ), + 'blog_public' => array( + 'label' => __( 'Is this site discouraging search engines?' ), + 'value' => $blog_public ? __( 'No' ) : __( 'Yes' ), + 'debug' => $blog_public, + ), 'default_comment_status' => array( 'label' => __( 'Default comment status' ), 'value' => 'open' === $default_comment_status ? _x( 'Open', 'comment status' ) : _x( 'Closed', 'comment status' ), diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index e17ca73251..7435ec7988 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -346,7 +346,7 @@ function wp_dashboard_right_now() { if ( ! is_network_admin() && ! is_user_admin() && current_user_can( 'manage_options' ) && '0' == get_option( 'blog_public' ) ) { /** - * Filters the link title attribute for the 'Search Engines Discouraged' + * Filters the link title attribute for the 'Search engines discouraged' * message displayed in the 'At a Glance' dashboard widget. * * Prior to 3.8.0, the widget was named 'Right Now'. @@ -359,7 +359,7 @@ function wp_dashboard_right_now() { $title = apply_filters( 'privacy_on_link_title', '' ); /** - * Filters the link label for the 'Search Engines Discouraged' message + * Filters the link label for the 'Search engines discouraged' message * displayed in the 'At a Glance' dashboard widget. * * Prior to 3.8.0, the widget was named 'Right Now'. @@ -368,10 +368,10 @@ function wp_dashboard_right_now() { * * @param string $content Default text. */ - $content = apply_filters( 'privacy_on_link_text', __( 'Search Engines Discouraged' ) ); + $content = apply_filters( 'privacy_on_link_text', __( 'Search engines discouraged' ) ); $title_attr = '' === $title ? '' : " title='$title'"; - echo "
"; + echo ""; } ?> diff --git a/src/wp-admin/install.php b/src/wp-admin/install.php index 51e389eeb6..efe061cddc 100644 --- a/src/wp-admin/install.php +++ b/src/wp-admin/install.php @@ -179,10 +179,10 @@ function display_setup_form( $error = null ) {