-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
Hello
You may add to line to this method to remove action, because there is a bug when you switch_to_blog and you do a new WP_Query
function remove_filters() {
remove_filter('posts_request', array(&$this, 'create_and_unionize_select_statements') );
remove_filter('posts_fields', array(&$this, 'add_site_ID_to_posts_fields') );
remove_action( 'the_post', array( &$this, 'switch_to_blog_while_in_loop' ) );
remove_action( 'loop_end', array( &$this, 'restore_current_blog_after_loop' ) );
}
Metadata
Metadata
Assignees
Labels
No labels