#3692 closed defect (bug) (fixed)
[4798] breaks some option usage scenarios including permalinks.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | 2.2 |
Component: | Administration | Keywords: | commit |
Focuses: | Cc: |
Description
[4798] Breaks the page permalinks on my test blog.
When you update the permalinks on option-permalinks the following happens:
- delete_option is called for 'page_uris'.
- update_option is called for 'page_uris'.
- This calls into get_option which marks the option as non-existent
- Then this calls add_option (as the option didn't exist) which adds the option to the db
- Then update_option returns.
Patch to fix attached
This means we have the option in the db (and cache) but we also have cached that the option doesn't exist.
get_option listens to the notoption cache above all else so we can no longer access the option!
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Fixup add_option to clear the notoption cache