Make WordPress Core

Changeset 53428


Ignore:
Timestamp:
05/21/2022 12:05:49 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the type for WP_Post::$post_category and ::$tags_input.

These properties are arrays of category IDs and tag names, respectively, not a single integer or string.

Follow-up to [21651], [31127], [32729], [48941].

Props omaeyusuke.
Fixes #55785.

File:
1 edited

Legend:

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

    r53042 r53428  
    1515 * @property string $page_template
    1616 *
    17  * @property-read int[]  $ancestors
    18  * @property-read int    $post_category
    19  * @property-read string $tag_input
     17 * @property-read int[]    $ancestors
     18 * @property-read int[]    $post_category
     19 * @property-read string[] $tags_input
    2020 */
    2121final class WP_Post {
Note: See TracChangeset for help on using the changeset viewer.