[wp-trac] [WordPress Trac] #9296: Settings API & Permalink Settings Page Bug

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 14 21:39:48 UTC 2012


#9296: Settings API & Permalink Settings Page Bug
----------------------------+--------------------------
 Reporter:  jfarthing84     |       Owner:  jfarthing84
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  3.5
Component:  Administration  |     Version:  2.7.1
 Severity:  major           |  Resolution:
 Keywords:  has-patch       |
----------------------------+--------------------------

Comment (by nacin):

 Let's see if we can make this work more like everything else, even if just
 a little.

  * [attachment:9296.cat-tag-base.diff] shows how category_base and
 tag_base can get pulled into a sanitize_option() callback. Doing this for
 permalink_structure is a bit more tricky.

  * But if we are able to handle permalink_structure through
 sanitize_option(), we could issue our own add_settings_error() call to
 handle our custom 'Permalink structure updated.' message.

  * A lot of variables used in the options.php branch aren't set.

 In general, I'd like it if options.php can stay as generalized as
 possible. Let's see what we can do to make this work.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9296#comment:32>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list