Make WordPress Core


Ignore:
Timestamp:
08/11/2022 02:01:35 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Correct and improve the documented types for various functions and hooks.

See #55646

File:
1 edited

Legend:

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

    r53842 r53877  
    1818 *                                  for insertion as a post revision. Default empty array.
    1919 * @param bool          $deprecated Not used.
    20  * @return array Array of fields that can be versioned.
     20 * @return string[] Array of fields that can be versioned.
    2121 */
    2222function _wp_post_revision_fields( $post = array(), $deprecated = false ) {
     
    4848     * @since 4.5.0 The `$post` parameter was added.
    4949     *
    50      * @param array $fields List of fields to revision. Contains 'post_title',
    51      *                      'post_content', and 'post_excerpt' by default.
    52      * @param array $post   A post array being processed for insertion as a post revision.
     50     * @param string[] $fields List of fields to revision. Contains 'post_title',
     51     *                         'post_content', and 'post_excerpt' by default.
     52     * @param array    $post   A post array being processed for insertion as a post revision.
    5353     */
    5454    $fields = apply_filters( '_wp_post_revision_fields', $fields, $post );
     
    490490 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
    491491 * @param array|null  $args Optional. Arguments for retrieving post revisions. Default null.
    492  * @return array An array of revisions, or an empty array if none.
     492 * @return WP_Post[]|int[] Array of revision objects or IDs, or an empty array if none.
    493493 */
    494494function wp_get_post_revisions( $post = 0, $args = null ) {
Note: See TracChangeset for help on using the changeset viewer.