(ACTUALLY) Eliminate use of `extract()` in `WP_Comment_Query::query()`.
See #22400. git-svn-id: https://develop.svn.wordpress.org/trunk@28459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8d22270bc1
commit
cb3341c03d
|
@ -274,7 +274,6 @@ class WP_Comment_Query {
|
||||||
* @param WP_Comment_Query &$this Current instance of WP_Comment_Query, passed by reference.
|
* @param WP_Comment_Query &$this Current instance of WP_Comment_Query, passed by reference.
|
||||||
*/
|
*/
|
||||||
do_action_ref_array( 'pre_get_comments', array( &$this ) );
|
do_action_ref_array( 'pre_get_comments', array( &$this ) );
|
||||||
extract( $this->query_vars, EXTR_SKIP );
|
|
||||||
|
|
||||||
// $args can be whatever, only use the args defined in defaults to compute the key
|
// $args can be whatever, only use the args defined in defaults to compute the key
|
||||||
$key = md5( serialize( compact( array_keys( $defaults ) ) ) );
|
$key = md5( serialize( compact( array_keys( $defaults ) ) ) );
|
||||||
|
|
Loading…
Reference in New Issue