Make WordPress Core


Ignore:
Timestamp:
03/15/2022 03:20:12 PM (3 years ago)
Author:
audrasjb
Message:

Docs: Misc. fixes in wp-includes/post-template.php and wp-includes/post-thumbnail-template.php.

Props azouamauriac, audrasjb.
See #54729.

File:
1 edited

Legend:

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

    r52685 r52935  
    1010
    1111/**
    12  * Display the ID of the current item in the WordPress Loop.
     12 * Displays the ID of the current item in the WordPress Loop.
    1313 *
    1414 * @since 0.71
     
    1919
    2020/**
    21  * Retrieve the ID of the current item in the WordPress Loop.
     21 * Retrieves the ID of the current item in the WordPress Loop.
    2222 *
    2323 * @since 2.1.0
     
    3131
    3232/**
    33  * Display or retrieve the current post title with optional markup.
     33 * Displays or retrieves the current post title with optional markup.
    3434 *
    3535 * @since 0.71
     
    5757
    5858/**
    59  * Sanitize the current title when retrieving or displaying.
     59 * Sanitizes the current title when retrieving or displaying.
    6060 *
    6161 * Works like the_title(), except the parameters can be in a string or
     
    104104
    105105/**
    106  * Retrieve post title.
     106 * Retrieves the post title.
    107107 *
    108108 * If the post is protected and the visitor is not an admin, then "Protected"
    109  * will be displayed before the post title. If the post is private, then
    110  * "Private" will be located before the post title.
     109 * will be inserted before the post title. If the post is private, then
     110 * "Private" will be inserted before the post title.
    111111 *
    112112 * @since 0.71
     
    173173
    174174/**
    175  * Display the Post Global Unique Identifier (guid).
     175 * Displays the Post Global Unique Identifier (guid).
    176176 *
    177177 * The guid will appear to be a link, but should not be used as a link to the
     
    205205
    206206/**
    207  * Retrieve the Post Global Unique Identifier (guid).
     207 * Retrieves the Post Global Unique Identifier (guid).
    208208 *
    209209 * The guid will appear to be a link, but should not be used as an link to the
     
    234234
    235235/**
    236  * Display the post content.
     236 * Displays the post content.
    237237 *
    238238 * @since 0.71
     
    257257
    258258/**
    259  * Retrieve the post content.
     259 * Retrieves the post content.
    260260 *
    261261 * @since 0.71
     
    377377
    378378/**
    379  * Display the post excerpt.
     379 * Displays the post excerpt.
    380380 *
    381381 * @since 0.71
     
    840840
    841841/**
    842  * Whether post requires password and correct password has been provided.
     842 * Determines whether the post requires password and whether a correct password has been provided.
    843843 *
    844844 * @since 2.7.0
     
    10641064
    10651065/**
    1066  * Retrieve post custom meta data field.
     1066 * Retrieves post custom meta data field.
    10671067 *
    10681068 * @since 1.5.0
     
    10851085
    10861086/**
    1087  * Display a list of post custom fields.
     1087 * Displays a list of post custom fields.
    10881088 *
    10891089 * @since 1.2.0
     
    11341134
    11351135/**
    1136  * Retrieve or display a list of pages as a dropdown (select list).
     1136 * Retrieves or displays a list of pages as a dropdown (select list).
    11371137 *
    11381138 * @since 2.1.0
     
    12251225
    12261226/**
    1227  * Retrieve or display a list of pages (or hierarchical post type items) in list (li) format.
     1227 * Retrieves or displays a list of pages (or hierarchical post type items) in list (li) format.
    12281228 *
    12291229 * @since 1.5.0
     
    15141514
    15151515/**
    1516  * Retrieve HTML list content for page list.
     1516 * Retrieves HTML list content for page list.
    15171517 *
    15181518 * @uses Walker_Page to create HTML list content.
     
    15451545
    15461546/**
    1547  * Retrieve HTML dropdown (select) content for page list.
     1547 * Retrieves HTML dropdown (select) content for page list.
    15481548 *
    15491549 * @since 2.1.0
     
    15751575
    15761576/**
    1577  * Display an attachment page link using an image or icon.
     1577 * Displays an attachment page link using an image or icon.
    15781578 *
    15791579 * @since 2.0.0
     
    15971597
    15981598/**
    1599  * Retrieve an attachment page link using an image or icon, if possible.
     1599 * Retrieves an attachment page link using an image or icon, if possible.
    16001600 *
    16011601 * @since 2.5.0
     
    16591659
    16601660/**
    1661  * Wrap attachment in paragraph tag before content.
     1661 * Wraps attachment in paragraph tag before content.
    16621662 *
    16631663 * @since 2.0.0
     
    17121712
    17131713/**
    1714  * Retrieve protected post password form content.
     1714 * Retrieves protected post password form content.
    17151715 *
    17161716 * @since 1.0.0
     
    17441744
    17451745/**
    1746  * Determines whether currently in a page template.
     1746 * Determines whether the current post uses a page template.
    17471747 *
    17481748 * This template tag allows you to determine if you are in a page template.
     
    17881788
    17891789/**
    1790  * Get the specific template filename for a given post.
     1790 * Gets the specific template filename for a given post.
    17911791 *
    17921792 * @since 3.4.0
     
    18141814
    18151815/**
    1816  * Retrieve formatted date timestamp of a revision (linked to that revisions's page).
     1816 * Retrieves formatted date timestamp of a revision (linked to that revisions's page).
    18171817 *
    18181818 * @since 2.6.0
     
    18551855
    18561856/**
    1857  * Retrieve formatted date timestamp of a revision (linked to that revisions's page).
     1857 * Retrieves formatted date timestamp of a revision (linked to that revisions's page).
    18581858 *
    18591859 * @since 3.6.0
     
    19191919
    19201920/**
    1921  * Display a list of a post's revisions.
     1921 * Displays a list of a post's revisions.
    19221922 *
    19231923 * Can output either a UL with edit links or a TABLE with diff interface, and
Note: See TracChangeset for help on using the changeset viewer.