Make WordPress Core

Changeset 41036


Ignore:
Timestamp:
07/13/2017 12:07:56 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing @since tags for WP_Post properties and methods.

Props keesiemeijer.
Fixes #41306.

File:
1 edited

Legend:

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

    r39992 r41036  
    2525         * Post ID.
    2626         *
     27         * @since 3.5.0
     28         * @access public
    2729         * @var int
    2830         */
    … …  
    3436         * A numeric string, for compatibility reasons.
    3537         *
     38         * @since 3.5.0
     39         * @access public
    3640         * @var string
    3741         */
    … …  
    4145         * The post's local publication time.
    4246         *
     47         * @since 3.5.0
     48         * @access public
    4349         * @var string
    4450         */
    … …  
    4854         * The post's GMT publication time.
    4955         *
     56         * @since 3.5.0
     57         * @access public
    5058         * @var string
    5159         */
    … …  
    5563         * The post's content.
    5664         *
     65         * @since 3.5.0
     66         * @access public
    5767         * @var string
    5868         */
    … …  
    6272         * The post's title.
    6373         *
     74         * @since 3.5.0
     75         * @access public
    6476         * @var string
    6577         */
    … …  
    6981         * The post's excerpt.
    7082         *
     83         * @since 3.5.0
     84         * @access public
    7185         * @var string
    7286         */
    … …  
    7690         * The post's status.
    7791         *
     92         * @since 3.5.0
     93         * @access public
    7894         * @var string
    7995         */
    … …  
    8399         * Whether comments are allowed.
    84100         *
     101         * @since 3.5.0
     102         * @access public
    85103         * @var string
    86104         */
    … …  
    90108         * Whether pings are allowed.
    91109         *
     110         * @since 3.5.0
     111         * @access public
    92112         * @var string
    93113         */
    … …  
    97117         * The post's password in plain text.
    98118         *
     119         * @since 3.5.0
     120         * @access public
    99121         * @var string
    100122         */
    … …  
    104126         * The post's slug.
    105127         *
     128         * @since 3.5.0
     129         * @access public
    106130         * @var string
    107131         */
    … …  
    111135         * URLs queued to be pinged.
    112136         *
     137         * @since 3.5.0
     138         * @access public
    113139         * @var string
    114140         */
    … …  
    118144         * URLs that have been pinged.
    119145         *
     146         * @since 3.5.0
     147         * @access public
    120148         * @var string
    121149         */
    … …  
    125153         * The post's local modified time.
    126154         *
     155         * @since 3.5.0
     156         * @access public
    127157         * @var string
    128158         */
    … …  
    132162         * The post's GMT modified time.
    133163         *
     164         * @since 3.5.0
     165         * @access public
    134166         * @var string
    135167         */
    … …  
    139171         * A utility DB field for post content.
    140172         *
    141          *
     173         * @since 3.5.0
     174         * @access public
    142175         * @var string
    143176         */
    … …  
    147180         * ID of a post's parent post.
    148181         *
     182         * @since 3.5.0
     183         * @access public
    149184         * @var int
    150185         */
    … …  
    154189         * The unique identifier for a post, not necessarily a URL, used as the feed GUID.
    155190         *
     191         * @since 3.5.0
     192         * @access public
    156193         * @var string
    157194         */
    … …  
    161198         * A field used for ordering posts.
    162199         *
     200         * @since 3.5.0
     201         * @access public
    163202         * @var int
    164203         */
    … …  
    168207         * The post's type, like post or page.
    169208         *
     209         * @since 3.5.0
     210         * @access public
    170211         * @var string
    171212         */
    … …  
    175216         * An attachment's mime type.
    176217         *
     218         * @since 3.5.0
     219         * @access public
    177220         * @var string
    178221         */
    … …  
    184227         * A numeric string, for compatibility reasons.
    185228         *
     229         * @since 3.5.0
     230         * @access public
    186231         * @var string
    187232         */
    … …  
    193238         * Does not correspond to a DB field.
    194239         *
     240         * @since 3.5.0
     241         * @access public
    195242         * @var string
    196243         */
    … …  
    200247         * Retrieve WP_Post instance.
    201248         *
     249         * @since 3.5.0
    202250         * @static
    203251         * @access public
    … …  
    236284         * Constructor.
    237285         *
     286         * @since 3.5.0
     287         *
    238288         * @param WP_Post|object $post Post object.
    239289         */
    … …  
    246296         * Isset-er.
    247297         *
     298         * @since 3.5.0
     299         *
    248300         * @param string $key Property to check if set.
    249301         * @return bool
    … …  
    267319        /**
    268320         * Getter.
     321         *
     322         * @since 3.5.0
    269323         *
    270324         * @param string $key Key to get.
    … …  
    311365         * {@Missing Summary}
    312366         *
     367         * @since 3.5.0
     368         *
    313369         * @param string $filter Filter.
    314370         * @return self|array|bool|object|WP_Post
    … …  
    327383         * Convert object to array.
    328384         *
     385         * @since 3.5.0
     386         *
    329387         * @return array Object as array.
    330388         */
Note: See TracChangeset for help on using the changeset viewer.