Ticket #54729: 54729.2.diff
File 54729.2.diff, 6.5 KB (added by , 3 years ago) |
---|
-
src/wp-includes/post-template.php
9 9 */ 10 10 11 11 /** 12 * Display the ID of the current item in the WordPress Loop.12 * Displays the ID of the current item in the WordPress Loop. 13 13 * 14 14 * @since 0.71 15 15 */ … … 18 18 } 19 19 20 20 /** 21 * Retrieve the ID of the current item in the WordPress Loop.21 * Retrieves the ID of the current item in the WordPress Loop. 22 22 * 23 23 * @since 2.1.0 24 24 * … … 30 30 } 31 31 32 32 /** 33 * Display or retrievethe current post title with optional markup.33 * Displays or retrieves the current post title with optional markup. 34 34 * 35 35 * @since 0.71 36 36 * … … 56 56 } 57 57 58 58 /** 59 * Sanitize the current title when retrieving or displaying.59 * Sanitizes the current title when retrieving or displaying. 60 60 * 61 61 * Works like the_title(), except the parameters can be in a string or 62 62 * an array. See the function for what can be override in the $args parameter. … … 103 103 } 104 104 105 105 /** 106 * Retrieve post title.106 * Retrieves post title. 107 107 * 108 108 * If the post is protected and the visitor is not an admin, then "Protected" 109 109 * will be displayed before the post title. If the post is private, then … … 172 172 } 173 173 174 174 /** 175 * Display the Post Global Unique Identifier (guid).175 * Displays the Post Global Unique Identifier (guid). 176 176 * 177 177 * The guid will appear to be a link, but should not be used as a link to the 178 178 * post. The reason you should not use it as a link, is because of moving the … … 204 204 } 205 205 206 206 /** 207 * Retrieve the Post Global Unique Identifier (guid).207 * Retrieves the Post Global Unique Identifier (guid). 208 208 * 209 209 * The guid will appear to be a link, but should not be used as an link to the 210 210 * post. The reason you should not use it as a link, is because of moving the … … 233 233 } 234 234 235 235 /** 236 * Display the post content.236 * Displays the post content. 237 237 * 238 238 * @since 0.71 239 239 * … … 256 256 } 257 257 258 258 /** 259 * Retrieve the post content.259 * Retrieves the post content. 260 260 * 261 261 * @since 0.71 262 262 * @since 5.2.0 Added the `$post` parameter. … … 376 376 } 377 377 378 378 /** 379 * Display the post excerpt.379 * Displays the post excerpt. 380 380 * 381 381 * @since 0.71 382 382 */ … … 1063 1063 // 1064 1064 1065 1065 /** 1066 * Retrieve post custom meta data field.1066 * Retrieves post custom meta data field. 1067 1067 * 1068 1068 * @since 1.5.0 1069 1069 * … … 1084 1084 } 1085 1085 1086 1086 /** 1087 * Display a list of post custom fields.1087 * Displays a list of post custom fields. 1088 1088 * 1089 1089 * @since 1.2.0 1090 1090 * … … 1133 1133 // 1134 1134 1135 1135 /** 1136 * Retrieve or displaya list of pages as a dropdown (select list).1136 * Retrieves or displays a list of pages as a dropdown (select list). 1137 1137 * 1138 1138 * @since 2.1.0 1139 1139 * @since 4.2.0 The `$value_field` argument was added. … … 1224 1224 } 1225 1225 1226 1226 /** 1227 * Retrieve or displaya 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. 1228 1228 * 1229 1229 * @since 1.5.0 1230 1230 * @since 4.7.0 Added the `item_spacing` argument. … … 1513 1513 // 1514 1514 1515 1515 /** 1516 * Retrieve HTML list content for page list.1516 * Retrieves HTML list content for page list. 1517 1517 * 1518 1518 * @uses Walker_Page to create HTML list content. 1519 1519 * @since 2.1.0 … … 1544 1544 } 1545 1545 1546 1546 /** 1547 * Retrieve HTML dropdown (select) content for page list.1547 * Retrieves HTML dropdown (select) content for page list. 1548 1548 * 1549 1549 * @since 2.1.0 1550 1550 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it … … 1574 1574 // 1575 1575 1576 1576 /** 1577 * Display an attachment page link using an image or icon.1577 * Displays an attachment page link using an image or icon. 1578 1578 * 1579 1579 * @since 2.0.0 1580 1580 * … … 1596 1596 } 1597 1597 1598 1598 /** 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. 1600 1600 * 1601 1601 * @since 2.5.0 1602 1602 * @since 4.4.0 The `$id` parameter can now accept either a post ID or `WP_Post` object. … … 1658 1658 } 1659 1659 1660 1660 /** 1661 * Wrap attachment in paragraph tag before content.1661 * Wraps attachment in paragraph tag before content. 1662 1662 * 1663 1663 * @since 2.0.0 1664 1664 * … … 1711 1711 // 1712 1712 1713 1713 /** 1714 * Retrieve protected post password form content.1714 * Retrieves protected post password form content. 1715 1715 * 1716 1716 * @since 1.0.0 1717 1717 * … … 1787 1787 } 1788 1788 1789 1789 /** 1790 * Get the specific template filename for a given post.1790 * Gets the specific template filename for a given post. 1791 1791 * 1792 1792 * @since 3.4.0 1793 1793 * @since 4.7.0 Now works with any post type, not just pages. … … 1813 1813 } 1814 1814 1815 1815 /** 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). 1817 1817 * 1818 1818 * @since 2.6.0 1819 1819 * … … 1854 1854 } 1855 1855 1856 1856 /** 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). 1858 1858 * 1859 1859 * @since 3.6.0 1860 1860 * … … 1918 1918 } 1919 1919 1920 1920 /** 1921 * Display a list of a post's revisions.1921 * Displays a list of a post's revisions. 1922 1922 * 1923 1923 * Can output either a UL with edit links or a TABLE with diff interface, and 1924 1924 * restore action links. -
src/wp-includes/post-thumbnail-template.php
39 39 } 40 40 41 41 /** 42 * Retrieve post thumbnail ID.42 * Retrieves post thumbnail ID. 43 43 * 44 44 * @since 2.9.0 45 45 * @since 4.4.0 `$post` can be a post ID or WP_Post object. … … 71 71 } 72 72 73 73 /** 74 * Display the post thumbnail.74 * Displays the post thumbnail. 75 75 * 76 76 * When a theme adds 'post-thumbnail' support, a special 'post-thumbnail' image size 77 77 * is registered, which differs from the 'thumbnail' image size managed via the … … 93 93 } 94 94 95 95 /** 96 * Update cache for thumbnails in the current loop.96 * Updates cache for thumbnails in the current loop. 97 97 * 98 98 * @since 3.2.0 99 99 * … … 127 127 } 128 128 129 129 /** 130 * Retrieve the post thumbnail.130 * Retrieves the post thumbnail. 131 131 * 132 132 * When a theme adds 'post-thumbnail' support, a special 'post-thumbnail' image size 133 133 * is registered, which differs from the 'thumbnail' image size managed via the … … 233 233 } 234 234 235 235 /** 236 * Return the post thumbnail URL.236 * Returns the post thumbnail URL. 237 237 * 238 238 * @since 4.4.0 239 239 * … … 266 266 } 267 267 268 268 /** 269 * Display the post thumbnail URL.269 * Displays the post thumbnail URL. 270 270 * 271 271 * @since 4.4.0 272 272 *