Make WordPress Core


Ignore:
Timestamp:
05/27/2024 04:28:00 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for a few functions accepting a WP_Post object.

Follow-up to [15777], [23769], [24490], [25697], [37252], [49544].

See #60699.

File:
1 edited

Legend:

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

    r55398 r58212  
    6464 * @since 3.1.0
    6565 *
    66  * @param int|object $post   The post for which to assign a format.
    67  * @param string     $format A format to assign. Use an empty string or array to remove all formats from the post.
     66 * @param int|WP_Post $post   The post for which to assign a format.
     67 * @param string      $format A format to assign. Use an empty string or array to remove all formats from the post.
    6868 * @return array|WP_Error|false Array of affected term IDs on success. WP_Error on error.
    6969 */
Note: See TracChangeset for help on using the changeset viewer.