After [29507], move unreachable code from `_requery()` to `Query.get()`.
Built from https://develop.svn.wordpress.org/trunk@29531 git-svn-id: http://core.svn.wordpress.org/trunk@29307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
36e4e9917b
commit
a0f2fe6599
|
@ -828,7 +828,7 @@ window.wp = window.wp || {};
|
||||||
var props;
|
var props;
|
||||||
if ( this.props.get('query') ) {
|
if ( this.props.get('query') ) {
|
||||||
props = this.props.toJSON();
|
props = this.props.toJSON();
|
||||||
props.cache = ( true !== refresh || _.isUndefined( refresh ) );
|
props.cache = ( true !== refresh );
|
||||||
this.mirror( Query.get( props ) );
|
this.mirror( Query.get( props ) );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1190,7 +1190,7 @@ window.wp = window.wp || {};
|
||||||
orderby = Query.orderby,
|
orderby = Query.orderby,
|
||||||
defaults = Query.defaultProps,
|
defaults = Query.defaultProps,
|
||||||
query,
|
query,
|
||||||
cache = !! props.cache;
|
cache = !! props.cache || _.isUndefined( props.cache );
|
||||||
|
|
||||||
// Remove the `query` property. This isn't linked to a query,
|
// Remove the `query` property. This isn't linked to a query,
|
||||||
// this *is* the query.
|
// this *is* the query.
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue