WordPress.org

Make WordPress Core

Changeset 34245


Ignore:
Timestamp:
09/16/2015 06:13:19 PM (4 years ago)
Author:
wonderboymusic
Message:

Revert [33925], by-reference array manipulation is breaking comments in some themes.

This implementation is losing its shine.

See #16894.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r34237 r34245  
    18151815        } else {
    18161816            $_comments = $wp_query->comments;
    1817         }
    1818 
    1819         if ( ! $wp_query->comment_meta_cached ) {
    1820             $comment_ids = wp_list_pluck( $_comments, 'comment_ID' );
    1821             update_meta_cache( 'comment', $comment_ids );
    1822             $wp_query->comment_meta_cached = true;
    18231817        }
    18241818    }
  • trunk/src/wp-includes/query.php

    r34090 r34245  
    12921292     */
    12931293     public $thumbnails_cached = false;
    1294 
    1295     /**
    1296      * Set if comment meta has already been cached
    1297      *
    1298      * @since 4.4.0
    1299      * @access public
    1300      * @var bool
    1301      */
    1302      public $comment_meta_cached = false;
    13031294
    13041295    /**
Note: See TracChangeset for help on using the changeset viewer.