WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#11578 closed defect (bug) (fixed)

Notice when updating permalinks if install has no pages and verbose_page_rules are used

Reported by: westi Owned by: westi
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9
Component: Rewrite Rules Keywords:
Focuses: Cc:

Description

Reported in #wordpress by shesek:

shesek: I'm getting "Warning: array_reverse() [function.array-reverse]: The argument should be an array in .../wp-includes/rewrite.php on line 790" after upgrading to 2.9
shesek: any known solution?

In my investigation I found you needed to have no pages and have a permalink configuration which caused the generation of verbose rules.

For example /%postname%/

Change History (2)

comment:1 @westi6 years ago

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

(in [12520]) Check that get_page_hierarchy() returns something before trying to build the verbose page rules in WP_Rewrite::page_uri_index(). Fixes #11578.

comment:2 @ryan6 years ago

See also #11661

Note: See TracTickets for help on using tickets.