Make WordPress Core

Ticket #37316: 37316.diff

File 37316.diff, 499 bytes (added by jason_the_adams, 7 years ago)
  • src/wp-includes/class-wp-post.php

    diff --git a/src/wp-includes/class-wp-post.php b/src/wp-includes/class-wp-post.php
    index 5904e58..4d7a4e7 100644
    a b final class WP_Post { 
    223223                                return false;
    224224
    225225                        $_post = sanitize_post( $_post, 'raw' );
     226      $_post = apply_filters( 'the_post_instance', $_post );
    226227                        wp_cache_add( $_post->ID, $_post, 'posts' );
    227228                } elseif ( empty( $_post->filter ) ) {
    228229                        $_post = sanitize_post( $_post, 'raw' );