Make WordPress Core

Ticket #35288: 35288.5.diff

File 35288.5.diff, 8.1 KB (added by afercia, 5 years ago)
  • src/wp-admin/css/dashboard.css

     
    197197
    198198.welcome-panel .welcome-icon:before,
    199199#dashboard_right_now li a:before,
    200 #dashboard_right_now li span:before {
     200#dashboard_right_now li span:before,
     201#dashboard_right_now .search-engines-info:before {
    201202        color: #606a73;
    202203        font: normal 20px/1 dashicons;
    203204        speak: none;
     
    260261
    261262/* Right Now specific Icons styles */
    262263
     264#dashboard_right_now .search-engines-info:before,
    263265#dashboard_right_now li a:before,
    264266#dashboard_right_now li > span:before { /* get only the first level span to exclude screen-reader-text in mu-storage */
    265267        content: "\f159"; /* generic icon for items added by CPTs ? */
     
    292294        content: "\f153";
    293295}
    294296
     297#dashboard_right_now .search-engines-info:before {
     298        content: "\f348";
     299}
     300
    295301/* Dashboard WordPress events */
    296302
    297303.community-events-errors {
     
    537543        margin-left: 5px;
    538544}
    539545
     546#dashboard_right_now p.search-engines-info {
     547        margin: 1em 0;
     548}
     549
    540550.mu-storage {
    541551        overflow: hidden;
    542552}
  • src/wp-admin/includes/class-wp-debug-data.php

     
    4040                $permalink_structure    = get_option( 'permalink_structure' );
    4141                $is_ssl                 = is_ssl();
    4242                $users_can_register     = get_option( 'users_can_register' );
     43                $blog_public            = get_option( 'blog_public' );
    4344                $default_comment_status = get_option( 'default_comment_status' );
    4445                $is_multisite           = is_multisite();
    4546                $core_version           = get_bloginfo( 'version' );
     
    103104                                        'value' => $users_can_register ? __( 'Yes' ) : __( 'No' ),
    104105                                        'debug' => $users_can_register,
    105106                                ),
     107                                'blog_public'            => array(
     108                                        'label' => __( 'Is this site discouraging search engines?' ),
     109                                        'value' => $blog_public ? __( 'No' ) : __( 'Yes' ),
     110                                        'debug' => $blog_public,
     111                                ),
    106112                                'default_comment_status' => array(
    107113                                        'label' => __( 'Default comment status' ),
    108114                                        'value' => 'open' === $default_comment_status ? _x( 'Open', 'comment status' ) : _x( 'Closed', 'comment status' ),
  • src/wp-admin/includes/dashboard.php

     
    346346        if ( ! is_network_admin() && ! is_user_admin() && current_user_can( 'manage_options' ) && '0' == get_option( 'blog_public' ) ) {
    347347
    348348                /**
    349                  * Filters the link title attribute for the 'Search Engines Discouraged'
     349                 * Filters the link title attribute for the 'Search engines discouraged'
    350350                 * message displayed in the 'At a Glance' dashboard widget.
    351351                 *
    352352                 * Prior to 3.8.0, the widget was named 'Right Now'.
     
    359359                $title = apply_filters( 'privacy_on_link_title', '' );
    360360
    361361                /**
    362                  * Filters the link label for the 'Search Engines Discouraged' message
     362                 * Filters the link label for the 'Search engines discouraged' message
    363363                 * displayed in the 'At a Glance' dashboard widget.
    364364                 *
    365365                 * Prior to 3.8.0, the widget was named 'Right Now'.
     
    368368                 *
    369369                 * @param string $content Default text.
    370370                 */
    371                 $content    = apply_filters( 'privacy_on_link_text', __( 'Search Engines Discouraged' ) );
     371                $content    = apply_filters( 'privacy_on_link_text', __( 'Search engines discouraged' ) );
    372372                $title_attr = '' === $title ? '' : " title='$title'";
    373373
    374                 echo "<p><a href='options-reading.php'$title_attr>$content</a></p>";
     374                echo "<p class='search-engines-info'><a href='options-reading.php'$title_attr>$content</a></p>";
    375375        }
    376376        ?>
    377377        </div>
  • src/wp-admin/install.php

     
    179179                        <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></td>
    180180                </tr>
    181181                <tr>
    182                         <th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?></th>
     182                        <th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?></th>
    183183                        <td>
    184184                                <fieldset>
    185                                         <legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?> </span></legend>
     185                                        <legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </span></legend>
    186186                                        <?php
    187187                                        if ( has_action( 'blog_privacy_selector' ) ) {
    188188                                                ?>
  • src/wp-admin/options-reading.php

     
    4040get_current_screen()->add_help_tab(
    4141        array(
    4242                'id'      => 'site-visibility',
    43                 'title'   => has_action( 'blog_privacy_selector' ) ? __( 'Site Visibility' ) : __( 'Search Engine Visibility' ),
     43                'title'   => has_action( 'blog_privacy_selector' ) ? __( 'Site visibility' ) : __( 'Search engine visibility' ),
    4444                'content' => '<p>' . __( 'You can choose whether or not your site will be crawled by robots, ping services, and spiders. If you want those services to ignore your site, click the checkbox next to &#8220;Discourage search engines from indexing this site&#8221; and click the Save Changes button at the bottom of the screen. Note that your privacy is not complete; your site is still visible on the web.' ) . '</p>' .
    45                         '<p>' . __( 'When this setting is in effect, a reminder is shown in the At a Glance box of the Dashboard that says, &#8220;Search Engines Discouraged,&#8221; to remind you that your site is not being crawled.' ) . '</p>',
     45                        '<p>' . __( 'When this setting is in effect, a reminder is shown in the At a Glance box of the Dashboard that says, &#8220;Search engines discouraged,&#8221; to remind you that your site is not being crawled.' ) . '</p>',
    4646        )
    4747);
    4848
     
    175175</tr>
    176176
    177177<tr class="option-site-visibility">
    178 <th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?> </th>
    179 <td><fieldset><legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?> </span></legend>
     178<th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </th>
     179<td><fieldset><legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </span></legend>
    180180<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
    181181        <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
    182182        <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br/>
     
    185185        <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site &mdash; it is up to search engines to honor your request.' ); ?></p>
    186186        <?php
    187187        /**
    188          * Enable the legacy 'Site Visibility' privacy options.
     188         * Enable the legacy 'Site visibility' privacy options.
    189189         *
    190190         * By default the privacy options form displays a single checkbox to 'discourage' search
    191191         * engines from indexing the site. Hooking to this action serves a dual purpose:
     
    192192         * 1. Disable the single checkbox in favor of a multiple-choice list of radio buttons.
    193193         * 2. Open the door to adding additional radio button choices to the list.
    194194         *
    195          * Hooking to this action also converts the 'Search Engine Visibility' heading to the more
    196          * open-ended 'Site Visibility' heading.
     195         * Hooking to this action also converts the 'Search engine visibility' heading to the more
     196         * open-ended 'Site visibility' heading.
    197197         *
    198198         * @since 2.1.0
    199199         */