Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#3274 closed defect (bug) (fixed)

"Limit Posts to Category" breaks paging

Reported by: alexkingorg's profile alexkingorg Owned by:
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.1
Component: General Keywords:
Focuses: Cc:

Description

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.

Attachments (1)

patch.diff (696 bytes) - added by alexkingorg 18 years ago.
patch

Download all attachments as: .zip

Change History (2)

@alexkingorg
18 years ago

patch

#1 @ryan
18 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in a different fashion in [4455]. See #3347.

Note: See TracTickets for help on using tickets.