Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#345 closed defect (bug) (fixed)

options-permalink.php gives foreach error if no static pages

Reported by: mc_incubus's profile MC_incubus Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: minor Version:
Component: Administration Keywords:
Focuses: Cc:

Description

/wp-admin/options-permalink.php gives a foreach error:

Warning: Invalid argument supplied for foreach() in /home/xxxx/www/www/wp-cvs/wp-admin/admin-functions.php on line 524

Adding a static page makes the error go away.

The problem is that generate_page_rewrite_rules() grabs all the static pages from the DB, but runs foreach on them even if none are returned.

Attachments (1)

0000345-admin-functions.php.diff (831 bytes) - added by MC_incubus 21 years ago.

Download all attachments as: .zip

Change History (4)

#2 @ryan
21 years ago

  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.