Make WordPress Core

Changeset 45912


Ignore:
Timestamp:
08/29/2019 09:24:46 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Administration: Add a note to "For each post in a feed, include [Full text / Summary]" option that how content is displayed in browsers depends on the theme.

Add a documentation link to learn more about feeds.

Props JarretC, SergeyBiryukov, pento, talldanwp, dinhtungdu, noisysocks, tobifjellner.
Fixes #46708.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-reading.php

    r45766 r45912  
    2424        'title'   => __( 'Overview' ),
    2525        'content' => '<p>' . __( 'This screen contains the settings that affect the display of your content.' ) . '</p>' .
    26             '<p>' . sprintf( __( 'You can choose what&#8217;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.' ), 'post-new.php?post_type=page' ) . '</p>' .
    27             '<p>' . __( '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.' ) . '</p>' .
     26            '<p>' . sprintf(
     27                __( 'You can choose what&#8217;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                'post-new.php?post_type=page'
     29            ) . '</p>' .
     30            '<p>' . sprintf(
     31                /* translators: %s: Documentation URL */
     32                __( '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                __( 'https://wordpress.org/support/article/wordpress-feeds/' )
     34            ) . '</p>' .
    2835            '<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>',
    2936    )
     
    141148</tr>
    142149<tr>
    143 <th scope="row"><?php _e( 'For each post in a feed, show' ); ?> </th>
    144 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each post in a feed, show' ); ?> </span></legend>
    145 <p><label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?>  /> <?php _e( 'Full text' ); ?></label><br />
    146 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Summary' ); ?></label></p>
     150<th scope="row"><?php _e( 'For each post in a feed, include' ); ?> </th>
     151<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each post in a feed, include' ); ?> </span></legend>
     152    <p>
     153        <label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Full text' ); ?></label><br />
     154        <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Summary' ); ?></label>
     155    </p>
     156    <p class="description">
     157        <?php
     158        printf(
     159            /* translators: %s: Documentation URL */
     160            __( 'Your theme determines how content is displayed in browsers. <a href="%s">Learn more about feeds</a>.' ),
     161            __( 'https://wordpress.org/support/article/wordpress-feeds/' )
     162        );
     163        ?>
     164    </p>
    147165</fieldset></td>
    148166</tr>
Note: See TracChangeset for help on using the changeset viewer.