#3692 closed defect (bug) (fixed)
[4798] breaks some option usage scenarios including permalinks.
| Reported by: | westi | Owned by: | westi |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2 |
| Component: | Administration | Version: | 2.2 |
| Severity: | normal | Keywords: | commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fixup add_option to clear the notoption cache