WordPress.org

Make WordPress Core

Ticket #12955: 12726-3.patch

File 12726-3.patch, 992 bytes (added by MikeSchinkel, 6 years ago)

Updated PHPDoc for $post

  • wp-includes/post-functions.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    443443                $_post = WP_Post::get_instance( $post );
    444444        }
    445445
     446        /**
     447         * Filter that allows a post object to be further sanitized, virtualized and/or have properties annotated.
     448         *
     449         * @since 4.4.0
     450         *
     451         * @param WP_Post       $_post    Post object to saitize/virtualize/annotate/etc.
     452         * @param WP_Post|int   $post     Original post object passed in.
     453         * @param string        $output   Format of data to return, potentially 'OBJECT', 'ARRAY_A' or 'ARRAY_N'.
     454         * @param string        $filter   Type of filter to apply, potentially 'raw', 'edit', 'db' or 'display'.
     455         */
     456        $_post = apply_filters( 'get_post', $_post, $post, $output, $filter );
     457
    446458        if ( ! $_post )
    447459                return null;
    448460