Make WordPress Core

Ticket #41306: 41306.patch

File 41306.patch, 4.8 KB (added by keesiemeijer, 8 years ago)

Add @since tags

  • src/wp-includes/class-wp-post.php

     
    2424        /**
    2525         * Post ID.
    2626         *
     27         * @since 3.5.0
     28         * @access public
    2729         * @var int
    2830         */
    2931        public $ID;
     
    3335         *
    3436         * A numeric string, for compatibility reasons.
    3537         *
     38         * @since 3.5.0
     39         * @access public
    3640         * @var string
    3741         */
    3842        public $post_author = 0;
     
    4044        /**
    4145         * The post's local publication time.
    4246         *
     47         * @since 3.5.0
     48         * @access public
    4349         * @var string
    4450         */
    4551        public $post_date = '0000-00-00 00:00:00';
     
    4753        /**
    4854         * The post's GMT publication time.
    4955         *
     56         * @since 3.5.0
     57         * @access public
    5058         * @var string
    5159         */
    5260        public $post_date_gmt = '0000-00-00 00:00:00';
     
    5462        /**
    5563         * The post's content.
    5664         *
     65         * @since 3.5.0
     66         * @access public
    5767         * @var string
    5868         */
    5969        public $post_content = '';
     
    6171        /**
    6272         * The post's title.
    6373         *
     74         * @since 3.5.0
     75         * @access public
    6476         * @var string
    6577         */
    6678        public $post_title = '';
     
    6880        /**
    6981         * The post's excerpt.
    7082         *
     83         * @since 3.5.0
     84         * @access public
    7185         * @var string
    7286         */
    7387        public $post_excerpt = '';
     
    7589        /**
    7690         * The post's status.
    7791         *
     92         * @since 3.5.0
     93         * @access public
    7894         * @var string
    7995         */
    8096        public $post_status = 'publish';
     
    8298        /**
    8399         * Whether comments are allowed.
    84100         *
     101         * @since 3.5.0
     102         * @access public
    85103         * @var string
    86104         */
    87105        public $comment_status = 'open';
     
    89107        /**
    90108         * Whether pings are allowed.
    91109         *
     110         * @since 3.5.0
     111         * @access public
    92112         * @var string
    93113         */
    94114        public $ping_status = 'open';
     
    96116        /**
    97117         * The post's password in plain text.
    98118         *
     119         * @since 3.5.0
     120         * @access public
    99121         * @var string
    100122         */
    101123        public $post_password = '';
     
    103125        /**
    104126         * The post's slug.
    105127         *
     128         * @since 3.5.0
     129         * @access public
    106130         * @var string
    107131         */
    108132        public $post_name = '';
     
    110134        /**
    111135         * URLs queued to be pinged.
    112136         *
     137         * @since 3.5.0
     138         * @access public
    113139         * @var string
    114140         */
    115141        public $to_ping = '';
     
    117143        /**
    118144         * URLs that have been pinged.
    119145         *
     146         * @since 3.5.0
     147         * @access public
    120148         * @var string
    121149         */
    122150        public $pinged = '';
     
    124152        /**
    125153         * The post's local modified time.
    126154         *
     155         * @since 3.5.0
     156         * @access public
    127157         * @var string
    128158         */
    129159        public $post_modified = '0000-00-00 00:00:00';
     
    131161        /**
    132162         * The post's GMT modified time.
    133163         *
     164         * @since 3.5.0
     165         * @access public
    134166         * @var string
    135167         */
    136168        public $post_modified_gmt = '0000-00-00 00:00:00';
     
    138170        /**
    139171         * A utility DB field for post content.
    140172         *
    141          *
     173         * @since 3.5.0
     174         * @access public
    142175         * @var string
    143176         */
    144177        public $post_content_filtered = '';
     
    146179        /**
    147180         * ID of a post's parent post.
    148181         *
     182         * @since 3.5.0
     183         * @access public
    149184         * @var int
    150185         */
    151186        public $post_parent = 0;
     
    153188        /**
    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         */
    158195        public $guid = '';
     
    160197        /**
    161198         * A field used for ordering posts.
    162199         *
     200         * @since 3.5.0
     201         * @access public
    163202         * @var int
    164203         */
    165204        public $menu_order = 0;
     
    167206        /**
    168207         * The post's type, like post or page.
    169208         *
     209         * @since 3.5.0
     210         * @access public
    170211         * @var string
    171212         */
    172213        public $post_type = 'post';
     
    174215        /**
    175216         * An attachment's mime type.
    176217         *
     218         * @since 3.5.0
     219         * @access public
    177220         * @var string
    178221         */
    179222        public $post_mime_type = '';
     
    183226         *
    184227         * A numeric string, for compatibility reasons.
    185228         *
     229         * @since 3.5.0
     230         * @access public
    186231         * @var string
    187232         */
    188233        public $comment_count = 0;
     
    192237         *
    193238         * Does not correspond to a DB field.
    194239         *
     240         * @since 3.5.0
     241         * @access public
    195242         * @var string
    196243         */
    197244        public $filter;
     
    199246        /**
    200247         * Retrieve WP_Post instance.
    201248         *
     249         * @since 3.5.0
    202250         * @static
    203251         * @access public
    204252         *
     
    235283        /**
    236284         * Constructor.
    237285         *
     286         * @since 3.5.0
     287         *
    238288         * @param WP_Post|object $post Post object.
    239289         */
    240290        public function __construct( $post ) {
     
    245295        /**
    246296         * Isset-er.
    247297         *
     298         * @since 3.5.0
     299         *
    248300         * @param string $key Property to check if set.
    249301         * @return bool
    250302         */
     
    267319        /**
    268320         * Getter.
    269321         *
     322         * @since 3.5.0
     323         *
    270324         * @param string $key Key to get.
    271325         * @return mixed
    272326         */
     
    310364        /**
    311365         * {@Missing Summary}
    312366         *
     367         * @since 3.5.0
     368         *
    313369         * @param string $filter Filter.
    314370         * @return self|array|bool|object|WP_Post
    315371         */
     
    326382        /**
    327383         * Convert object to array.
    328384         *
     385         * @since 3.5.0
     386         *
    329387         * @return array Object as array.
    330388         */
    331389        public function to_array() {