s/add_action()/add_filter() in WP_Query metadata lazyloading.

Props dlh.
See #34047.
Built from https://develop.svn.wordpress.org/trunk@34731


git-svn-id: http://core.svn.wordpress.org/trunk@34695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2015-10-01 04:01:24 +00:00
parent b2f253fc8e
commit 80654eb17a
2 changed files with 3 additions and 3 deletions

View File

@ -3561,7 +3561,7 @@ class WP_Query {
if ( $q['update_post_term_cache'] ) {
add_action( 'get_term_metadata', array( $this, 'lazyload_term_meta' ), 10, 2 );
add_filter( 'get_term_metadata', array( $this, 'lazyload_term_meta' ), 10, 2 );
}
if ( ! $q['suppress_filters'] ) {
@ -3693,7 +3693,7 @@ class WP_Query {
// If comments have been fetched as part of the query, make sure comment meta lazy-loading is set up.
if ( ! empty( $this->comments ) ) {
add_action( 'get_comment_metadata', array( $this, 'lazyload_comment_meta' ), 10, 2 );
add_filter( 'get_comment_metadata', array( $this, 'lazyload_comment_meta' ), 10, 2 );
}
if ( ! $q['suppress_filters'] ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34730';
$wp_version = '4.4-alpha-34731';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.