Opened 6 years ago
Last modified 6 years ago
#48573 new defect (bug)
Permalinks Settings screen unnecessarily calls sanitize_option( 'permalink_structure' )...
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Options, Meta APIs | Keywords: | 2nd-opinion |
| Focuses: | administration | Cc: |
Description
...just before it calls WP_Rewrite::set_permalink_structure().
It is unnecessary because sanitize_option() will be called by the update_option() call in WP_Rewrite::set_permalink_structure() if it the value needs to be sanitized (i.e., it has changed).
Change History (2)
Note: See
TracTickets for help on using
tickets.
If it really is necessary for the Permalink Setting screen to sanitize the new value before calling
WP_Rewrite::set_permalink_structure(), then shouldn't it also sanitize$category_baseand$tag_basebefore callingWP_Rewrite::set_[category|tag]_base()?I'll do a patch either way (i.e., removing the unnecessary call or adding the 2 missing calls) as soon as others confirm which way to go.