28 __( 'You can choose what’s displayed on the homepage of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static homepage, you first need to create two <a href="%s">Pages</a>. One will become the homepage, and the other will be where your posts are displayed.' ), |
28 __( 'You can choose what’s displayed on the homepage of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static homepage, you first need to create two <a href="%s">Pages</a>. One will become the homepage, and the other will be where your posts are displayed.' ), |
29 'post-new.php?post_type=page' |
29 'post-new.php?post_type=page' |
30 ) . '</p>' . |
30 ) . '</p>' . |
31 '<p>' . sprintf( |
31 '<p>' . sprintf( |
32 /* translators: %s: Documentation URL. */ |
32 /* translators: %s: Documentation URL. */ |
33 __( 'You can also control the display of your content in RSS feeds, including the maximum number of posts to display and whether to show full text or a summary. <a href="%s">Learn more about feeds</a>.' ), |
33 __( 'You can also control the display of your content in RSS feeds, including the maximum number of posts to display and whether to show full text or an excerpt. <a href="%s">Learn more about feeds</a>.' ), |
34 __( 'https://wordpress.org/support/article/wordpress-feeds/' ) |
34 __( 'https://wordpress.org/support/article/wordpress-feeds/' ) |
35 ) . '</p>' . |
35 ) . '</p>' . |
36 '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>', |
36 '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>', |
37 ) |
37 ) |
38 ); |
38 ); |
39 |
39 |
40 get_current_screen()->add_help_tab( |
40 get_current_screen()->add_help_tab( |
41 array( |
41 array( |
42 'id' => 'site-visibility', |
42 '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' ), |
44 '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 “Discourage search engines from indexing 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>' . |
44 '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 “Discourage search engines from indexing this site” and click the Save Changes button at the bottom of the screen.' ) . '</p>' . |
45 '<p>' . __( 'When this setting is in effect, a reminder is shown in the At a Glance box of the Dashboard that says, “Search engines discouraged,” to remind you that your site is not being crawled.' ) . '</p>', |
45 '<p>' . __( 'Note that even when set to discourage search engines, your site is still visible on the web and not all search engines adhere to this directive.' ) . '</p>' . |
|
46 '<p>' . __( 'When this setting is in effect, a reminder is shown in the At a Glance box of the Dashboard that says, “Search engines discouraged”, to remind you that you have directed search engines to not crawl your site.' ) . '</p>', |
46 ) |
47 ) |
47 ); |
48 ); |
48 |
49 |
49 get_current_screen()->set_help_sidebar( |
50 get_current_screen()->set_help_sidebar( |
50 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
51 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
135 ); |
136 ); |
136 ?> |
137 ?> |
137 </label></li> |
138 </label></li> |
138 </ul> |
139 </ul> |
139 <?php if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) === get_option( 'page_on_front' ) ) : ?> |
140 <?php if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) === get_option( 'page_on_front' ) ) : ?> |
140 <div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div> |
141 <div id="front-page-warning" class="notice notice-warning inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div> |
141 <?php endif; ?> |
142 <?php endif; ?> |
142 <?php if ( get_option( 'wp_page_for_privacy_policy' ) === get_option( 'page_for_posts' ) || get_option( 'wp_page_for_privacy_policy' ) === get_option( 'page_on_front' ) ) : ?> |
143 <?php if ( get_option( 'wp_page_for_privacy_policy' ) === get_option( 'page_for_posts' ) || get_option( 'wp_page_for_privacy_policy' ) === get_option( 'page_on_front' ) ) : ?> |
143 <div id="privacy-policy-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same as your Privacy Policy page!' ); ?></p></div> |
144 <div id="privacy-policy-page-warning" class="notice notice-warning inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same as your Privacy Policy page!' ); ?></p></div> |
144 <?php endif; ?> |
145 <?php endif; ?> |
145 </fieldset></td> |
146 </fieldset></td> |
146 </tr> |
147 </tr> |
147 <?php endif; ?> |
148 <?php endif; ?> |
148 <tr> |
149 <tr> |
158 <tr> |
159 <tr> |
159 <th scope="row"><?php _e( 'For each post in a feed, include' ); ?> </th> |
160 <th scope="row"><?php _e( 'For each post in a feed, include' ); ?> </th> |
160 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each post in a feed, include' ); ?> </span></legend> |
161 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each post in a feed, include' ); ?> </span></legend> |
161 <p> |
162 <p> |
162 <label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Full text' ); ?></label><br /> |
163 <label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Full text' ); ?></label><br /> |
163 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Summary' ); ?></label> |
164 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Excerpt' ); ?></label> |
164 </p> |
165 </p> |
165 <p class="description"> |
166 <p class="description"> |
166 <?php |
167 <?php |
167 printf( |
168 printf( |
168 /* translators: %s: Documentation URL. */ |
169 /* translators: %s: Documentation URL. */ |