#345 closed defect (bug) (fixed)
options-permalink.php gives foreach error if no static pages
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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)
Change History (4)
Note: See
TracTickets for help on using
tickets.
http://wordpress.org/pipermail/cvs_wordpress.org/2004-October/000538.html