﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
12723	apply_filters_ref_array bug	jfarthing84	westi	"I believe (unless I am not using it correctly) that there is a bug with the new apply_filters_ref_array() function. Particularly, I am applying two different functions certain 'posts_' filters in the query, and only the one with the highest priority is processed. Small example:


{{{
function posts_where_filter_one($where) {
  global $wpdb;
  $where .= "" AND $wpdb->posts.post_type = 'post'"";
}
add_filter('posts_where', 'posts_where_filter_one');

function posts_where_filter_two($where) {
  global $wpdb;
  $where .= "" AND $wpdb->posts.post_status = 'publish'"";
}
add_filter('posts_where', 'posts_where_filter_two');
}}}


You would expect $where to end up as:

AND wp_posts.post_type = 'post' AND wp_posts.post_status = 'publish'

But instead it end up as:

AND wp_posts.post_status = 'publish'"	defect (bug)	closed	highest omg bbq	3.0	Plugins	3.0	blocker	fixed	has-patch tested commit	jeff@…
