Make WordPress Core

Opened 21 years ago

Closed 21 years ago

#920 closed defect (bug) (fixed)

Calling wp_list_pages twice with different args does not work

Reported by: anonymousbugger's profile anonymousbugger Owned by: michel-v's profile michel v
Milestone: Priority: normal
Severity: major Version: 1.5
Component: Administration Keywords:
Focuses: Cc:

Description

The get_pages() function caches the page list and returns it in later calls.

For example
1: get_pages("child_of=3");
2: get_pages("child_of=24");

In this case the second call returns the same result as the first one.

Change History (7)

#1 @anonymousbugger
21 years ago

  • Patch set to No

#2 @error
21 years ago

This seems to have to do with the new page caching code, which as far as I can tell is so utterly broken that wp_list_pages() does not work at all for me. I've so far been unable to sufficiently patch it to restore the previous behavior and have since downgraded my site to 2005-02-14, until I have some more time to work on it. More info later...

#3 @michel v
21 years ago

Acknowledged.
Before these changes, it was broken in a different way: made one query per page, all the time.
I plan to fix this by having a function much like get_page_uri, but that can take multiple page IDs at the same time; or have get_page_uri accept an array of page IDs.

#4 @michel v
21 years ago

  • Status changed from new to assigned

#5 @michel v
21 years ago

  • Owner changed from anonymous to michel v

#7 @ryan
21 years ago

  • fixed_in_version set to 1.5.1
  • Resolution changed from 10 to 20
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.