#22351 closed defect (bug) (fixed)
Action "permalink_structure_changed" passes new permalink_structure for old and new permalink_structure value
Reported by: | doublesharp | Owned by: | duck_ |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | Permalinks | Keywords: | has-patch needs-testing dev-feedback |
Focuses: | Cc: |
Description
Per the function PHPDoc, the set_permalink_structure() method in /wp-includes/rewrite.php should fire the 'permalink_structure_changed' with the old and new permalink structure after the new structure is saved:
* Fires the 'permalink_structure_changed' action once the init call has
- processed passing the old and new values
It is currently passing $this->permalink_structure as the "old" structure value, however as this value is updated by the call to $this->init() the result is that the new structure is passed instead of the old structure.
Suggested patch would copy $this->permalink_structure before the call to $this->init() and pass the copy as the old permalink structure.
Attachments (1)
Change History (8)
#1
@
12 years ago
functionality was originally added in changeset:11325 with bug.
#5
@
12 years ago
- Owner set to duck_
- Resolution set to fixed
- Status changed from new to closed
In 22398:
Note: See
TracTickets for help on using
tickets.
fixes "permalink_structure_changed" action