Make WordPress Core


Ignore:
Timestamp:
01/15/2021 08:06:50 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of false.

Follow-up to [46696], [47060], [49926], [49927], [49929].

See #51800.

File:
1 edited

Legend:

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

    r49936 r49963  
    62246224 *
    62256225 * @param int $post_id Optional. Attachment ID. Default is the ID of the global `$post`.
    6226  * @return string|false False on failure. Attachment caption on success.
     6226 * @return string|false Attachment caption on success, false on failure.
    62276227 */
    62286228function wp_get_attachment_caption( $post_id = 0 ) {
     
    62576257 *
    62586258 * @param int $post_id Optional. Attachment ID. Default 0.
    6259  * @return string|false False on failure. Thumbnail file path on success.
     6259 * @return string|false Thumbnail file path on success, false on failure.
    62606260 */
    62616261function wp_get_attachment_thumb_file( $post_id = 0 ) {
     
    62976297 *
    62986298 * @param int $post_id Optional. Attachment ID. Default 0.
    6299  * @return string|false False on failure. Thumbnail URL on success.
     6299 * @return string|false Thumbnail URL on success, false on failure.
    63006300 */
    63016301function wp_get_attachment_thumb_url( $post_id = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.