[wp-trac] [WordPress Trac] #48573: Permalinks Settings screen unnecessarily calls sanitize_option( 'permalink_structure' )...

WordPress Trac noreply at wordpress.org
Tue Nov 12 17:56:31 UTC 2019


#48573: Permalinks Settings screen unnecessarily calls sanitize_option(
'permalink_structure' )...
--------------------------------+-----------------------------
 Reporter:  pbiron              |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 ...just before it calls
 [https://developer.wordpress.org/reference/classes/wp_rewrite/set_permalink_structure/
 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).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48573>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list