From 75f20c3e699fac9dd8d58458659a188788772142 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 18 Aug 2014 04:07:03 +0000 Subject: [PATCH] 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 --- src/wp-includes/js/media-models.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/js/media-models.js b/src/wp-includes/js/media-models.js index 6b62a0b429..ac7ee938d6 100644 --- a/src/wp-includes/js/media-models.js +++ b/src/wp-includes/js/media-models.js @@ -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.