Make WordPress Core

Ticket #65766: 65766_2.diff

File 65766_2.diff, 2.0 KB (added by sawf1y, 8 weeks ago)
  • src/wp-admin/options-reading.php

    diff --git a/src/wp-admin/options-reading.php b/src/wp-admin/options-reading.php
    index 31facac7ed..f6804a39fe 100644
    a b else :  
    214214<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
    215215        <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
    216216        <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
    217         <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
     217        <input id="blog-norobots" type="radio" name="blog_public" aria-describedby="public-desc" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
    218218        <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
    219         <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>
     219        <p id="public-desc" 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>
    220220        <?php
    221221        /**
    222222         * Enables the legacy 'Site visibility' privacy options.
    … … else :  
    235235        do_action( 'blog_privacy_selector' );
    236236        ?>
    237237<?php else : ?>
    238         <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
     238        <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" aria-describedby="privacy-desc" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
    239239        <?php _e( 'Discourage search engines from indexing this site' ); ?></label>
    240         <p class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p>
     240        <p id="privacy-desc" class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p>
    241241<?php endif; ?>
    242242</fieldset></td>
    243243</tr>