WordPress.org

Make WordPress Core

Ticket #22223: 22223.2.diff

File 22223.2.diff, 473 bytes (added by ryan, 6 years ago)

Don't wp_cache_add()

  • wp-includes/post.php

     
    389389        } elseif ( is_object( $post ) ) {
    390390                if ( empty( $post->filter ) ) {
    391391                        $_post = sanitize_post( $post, 'raw' );
    392                         wp_cache_add( $post->ID, $_post, 'posts' );
    393392                        $_post = new WP_Post( $_post );
    394393                } elseif ( 'raw' == $post->filter ) {
    395394                        $_post = new WP_Post( $post );