Make WordPress Core

Changeset 53539


Ignore:
Timestamp:
06/20/2022 09:44:27 PM (3 years ago)
Author:
audrasjb
Message:

Docs: Use third-person singular verbs for function descriptions in the Feed API, as per docblock standards.

See #55646.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/feed.php

    r50916 r53539  
    1212
    1313/**
    14  * RSS container for the bloginfo function.
     14 * Retrieves RSS container for the bloginfo function.
    1515 *
    1616 * You can retrieve anything that you can using the get_bloginfo() function.
     
    4242
    4343/**
    44  * Display RSS container for the bloginfo function.
     44 * Displays RSS container for the bloginfo function.
    4545 *
    4646 * You can retrieve anything that you can using the get_bloginfo() function.
     
    6969
    7070/**
    71  * Retrieve the default feed.
     71 * Retrieves the default feed.
    7272 *
    7373 * The default feed is 'rss2', unless a plugin changes it through the
     
    9393
    9494/**
    95  * Retrieve the blog title for the feed title.
     95 * Retrieves the blog title for the feed title.
    9696 *
    9797 * @since 2.2.0
    9898 * @since 4.4.0 The optional `$sep` parameter was deprecated and renamed to `$deprecated`.
    9999 *
    100  * @param string $deprecated Unused..
     100 * @param string $deprecated Unused.
    101101 * @return string The document title.
    102102 */
     
    120120
    121121/**
    122  * Display the blog title for display of the feed title.
     122 * Displays the blog title for display of the feed title.
    123123 *
    124124 * @since 2.2.0
     
    148148
    149149/**
    150  * Retrieve the current post title for the feed.
     150 * Retrieves the current post title for the feed.
    151151 *
    152152 * @since 2.0.0
     
    168168
    169169/**
    170  * Display the post title in the feed.
     170 * Displays the post title in the feed.
    171171 *
    172172 * @since 0.71
     
    177177
    178178/**
    179  * Retrieve the post content for feeds.
     179 * Retrieves the post content for feeds.
    180180 *
    181181 * @since 2.9.0
     
    208208
    209209/**
    210  * Display the post content for feeds.
     210 * Displays the post content for feeds.
    211211 *
    212212 * @since 2.9.0
     
    219219
    220220/**
    221  * Display the post excerpt for the feed.
     221 * Displays the post excerpt for the feed.
    222222 *
    223223 * @since 0.71
     
    236236
    237237/**
    238  * Display the permalink to the post for use in feeds.
     238 * Displays the permalink to the post for use in feeds.
    239239 *
    240240 * @since 2.3.0
     
    252252
    253253/**
    254  * Outputs the link to the comments for the current post in an xml safe way
     254 * Outputs the link to the comments for the current post in an XML safe way.
    255255 *
    256256 * @since 3.0.0
     
    269269
    270270/**
    271  * Display the feed GUID for the current comment.
     271 * Displays the feed GUID for the current comment.
    272272 *
    273273 * @since 2.5.0
     
    280280
    281281/**
    282  * Retrieve the feed GUID for the current comment.
     282 * Retrieves the feed GUID for the current comment.
    283283 *
    284284 * @since 2.5.0
     
    298298
    299299/**
    300  * Display the link to the comments.
     300 * Displays the link to the comments.
    301301 *
    302302 * @since 1.5.0
     
    319319
    320320/**
    321  * Retrieve the current comment author for use in the feeds.
     321 * Retrieves the current comment author for use in the feeds.
    322322 *
    323323 * @since 2.0.0
    324324 *
    325  * @return string Comment Author
     325 * @return string Comment Author.
    326326 */
    327327function get_comment_author_rss() {
     
    339339
    340340/**
    341  * Display the current comment author in the feed.
     341 * Displays the current comment author in the feed.
    342342 *
    343343 * @since 1.0.0
     
    348348
    349349/**
    350  * Display the current comment content for use in the feeds.
     350 * Displays the current comment content for use in the feeds.
    351351 *
    352352 * @since 1.0.0
     
    366366
    367367/**
    368  * Retrieve all of the post categories, formatted for use in feeds.
     368 * Retrieves all of the post categories, formatted for use in feeds.
    369369 *
    370370 * All of the categories for the current post in the feed loop, will be
     
    428428
    429429/**
    430  * Display the post categories in the feed.
     430 * Displays the post categories in the feed.
    431431 *
    432432 * @since 0.71
     
    441441
    442442/**
    443  * Display the HTML type based on the blog setting.
     443 * Displays the HTML type based on the blog setting.
    444444 *
    445445 * The two possible values are either 'xhtml' or 'html'.
     
    458458
    459459/**
    460  * Display the rss enclosure for the current post.
     460 * Displays the rss enclosure for the current post.
    461461 *
    462462 * Uses the global $post to check whether the post requires a password and if
     
    499499
    500500/**
    501  * Display the atom enclosure for the current post.
     501 * Displays the atom enclosure for the current post.
    502502 *
    503503 * Uses the global $post to check whether the post requires a password and if
     
    564564
    565565/**
    566  * Determine the type of a string of data with the data formatted.
     566 * Determines the type of a string of data with the data formatted.
    567567 *
    568568 * Tell whether the type is text, HTML, or XHTML, per RFC 4287 section 3.1.
     
    577577 * @since 2.5.0
    578578 *
    579  * @param string $data Input string
     579 * @param string $data Input string.
    580580 * @return array array(type, value)
    581581 */
     
    664664
    665665/**
    666  * Display the link for the currently displayed feed in a XSS safe way.
     666 * Displays the link for the currently displayed feed in a XSS safe way.
    667667 *
    668668 * Generate a correct link for the atom:self element.
     
    685685
    686686/**
    687  * Get the UTC time of the most recently modified post from WP_Query.
     687 * Gets the UTC time of the most recently modified post from WP_Query.
    688688 *
    689689 * If viewing a comment feed, the time of the most recently modified
     
    743743
    744744/**
    745  * Return the content type for specified feed type.
     745 * Returns the content type for specified feed type.
    746746 *
    747747 * @since 2.8.0
     
    776776
    777777/**
    778  * Build SimplePie object based on RSS or Atom feed from URL.
     778 * Builds SimplePie object based on RSS or Atom feed from URL.
    779779 *
    780780 * @since 2.8.0
Note: See TracChangeset for help on using the changeset viewer.