[wp-trac] [WordPress Trac] #3274: "Limit Posts to Category" breaks
paging
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 23 22:52:50 GMT 2006
#3274: "Limit Posts to Category" breaks paging
-------------------------+--------------------------------------------------
Reporter: alexkingorg | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.1
Component: General | Version: 2.1
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Using a plugin similar to Ryan Boren's Front Page Cats http://dev.wp-
plugins.org/browser/front-page-cats is breaking paging.
The problem is in _max_num_pages() - the $wpdb->get_var("SELECT COUNT...
fails with the JOIN.
I've attached a patch, but I'm not crazy about the solution. However,
since the query hooks allow this sort of join and there are no hooks in
max_num_pages or the paging functions, it seems like a better solution
that what we have now.
--
Ticket URL: <http://trac.wordpress.org/ticket/3274>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list