Changeset 21838 for trunk/wp-admin/options-reading.php
- Timestamp:
- 09/13/2012 05:28:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-reading.php
r21653 r21838 51 51 ) ); 52 52 53 get_current_screen()->add_help_tab( array( 54 'id' => 'site-visibility', 55 'title' => has_action( 'blog_privacy_selector' ) ? __( 'Site Visibility' ) : __( 'Search Engine Visibility' ), 56 '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 radio button next to “Ask search engines not to index this site” 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>' . 57 '<p>' . __( 'When this setting is in effect a reminder is shown in the Right Now box of the Dashboard that says, “Search Engines Discouraged,” to remind you that your site is not being crawled.' ) . '</p>', 58 ) ); 59 53 60 get_current_screen()->set_help_sidebar( 54 61 '<p><strong>' . __('For more information:') . '</strong></p>' . … … 64 71 <h2><?php echo esc_html( $title ); ?></h2> 65 72 66 <form name="form1"method="post" action="options.php">73 <form method="post" action="options.php"> 67 74 <?php 68 75 settings_fields( 'reading' ); … … 133 140 </tr> 134 141 142 <tr valign="top"> 143 <th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?> </th> 144 <td><fieldset><legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site Visibility' ) : _e( 'Search Engine Visibility' ); ?> </span></legend> 145 <?php if ( has_action( 'blog_privacy_selector' ) ) : ?> 146 <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> /> 147 <label for="blog-public"><?php _e( 'Allow search engines to index this site.' );?></label><br/> 148 <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> /> 149 <label for="blog-norobots"><?php _e( 'Ask search engines not to index this site.' ); ?></label> 150 <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site — it is up to search engines to honor your request.' ); ?></p> 151 <?php do_action('blog_privacy_selector'); ?> 152 <?php else : ?> 153 <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> /> 154 <?php _e( 'Allow search engines to index this site' ); ?> 155 <p class="description"><?php _e( 'It is up to search engines to honor a request to not index this site.' ); ?></p> 156 <?php endif; ?> 157 </fieldset></td> 158 </tr> 159 135 160 <?php do_settings_fields( 'reading', 'default' ); ?> 136 161 </table>
Note: See TracChangeset
for help on using the changeset viewer.