Skip to content

Commit

Permalink
yet another flip flop on how to restore the hidden query
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiemoya committed Sep 18, 2012
1 parent 1b81115 commit 39b61a5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions controllers/controller-widgets.php
Expand Up @@ -400,7 +400,7 @@ public function form_field($widget, $field_id, $type, $label, $instance, $option
* Holy filters batman!
*/
public function display_dropzones(){
global $wp_the_query, $paged;
global $wp_the_query, $paged, $wp_query;

//Magical fucking resetting of a query that _never_ took place FUCKING MAGIC BITCH!
// $wp_the_query->query['post_type'] = array($wp_the_query->query_vars['old_post_type']);
Expand All @@ -418,8 +418,9 @@ public function display_dropzones(){
$paged = $query['paged'];

// unset($wp_the_query->query['meta_key']);
query_posts($query);
//echo "<pre>";print_r($wp_query);echo "</pre>";
//query_posts($query);
$wp_the_query = new WP_Query($query);
//echo "<pre>";print_r($wp_the_query);echo "</pre>";


echo apply_filters('widgetpress_before_dropzones_container', '<section class="dropzones span12">', $dropzone);
Expand Down

0 comments on commit 39b61a5

Please sign in to comment.