Make WordPress Core

Ticket #12955: 12955.3.diff

File 12955.3.diff, 968 bytes (added by MikeSchinkel, 9 years ago)

Added PHPDoc for filter and $post, $output and $filter as $args.

  • 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 $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