[wp-cvs] wordpress/wp-includes functions.php,1.125,1.126
Ryan Boren
rboren at users.sourceforge.net
Sun Jun 20 22:36:48 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16578/wp-includes
Modified Files:
functions.php
Log Message:
Add posts_where, the_posts, and query_string filters.
Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.125
retrieving revision 1.126
diff -C2 -d -r1.125 -r1.126
*** functions.php 19 Jun 2004 04:23:59 -0000 1.125
--- functions.php 20 Jun 2004 22:36:45 -0000 1.126
***************
*** 1687,1690 ****
--- 1687,1692 ----
else
$where .= ')';
+
+ $where = apply_filters('posts_where', $where);
$where .= " GROUP BY $wpdb->posts.ID";
$request = " SELECT $distinct * FROM $wpdb->posts $join WHERE 1=1".$where." ORDER BY post_$orderby $limits";
***************
*** 1703,1706 ****
--- 1705,1710 ----
// echo $request;
$posts = $wpdb->get_results($request);
+ $posts = apply_filters('the_posts', $posts);
+
update_post_caches($posts);
return $posts;
More information about the cvs
mailing list