mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 17:13:30 +01:00
After [29507], move unreachable code from _requery()
to Query.get()
.
git-svn-id: https://develop.svn.wordpress.org/trunk@29531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
36b5f034ab
commit
75f20c3e69
@ -828,7 +828,7 @@ window.wp = window.wp || {};
|
||||
var props;
|
||||
if ( this.props.get('query') ) {
|
||||
props = this.props.toJSON();
|
||||
props.cache = ( true !== refresh || _.isUndefined( refresh ) );
|
||||
props.cache = ( true !== refresh );
|
||||
this.mirror( Query.get( props ) );
|
||||
}
|
||||
},
|
||||
@ -1190,7 +1190,7 @@ window.wp = window.wp || {};
|
||||
orderby = Query.orderby,
|
||||
defaults = Query.defaultProps,
|
||||
query,
|
||||
cache = !! props.cache;
|
||||
cache = !! props.cache || _.isUndefined( props.cache );
|
||||
|
||||
// Remove the `query` property. This isn't linked to a query,
|
||||
// this *is* the query.
|
||||
|
Loading…
x
Reference in New Issue
Block a user