[wp-trac] [WordPress Trac] #44459: Options added to the Permalinks admin page do not get saved

WordPress Trac noreply at wordpress.org
Tue Jun 26 16:10:24 UTC 2018


#44459: Options added to the Permalinks admin page do not get saved
--------------------------------+------------------------------
 Reporter:  RavanH              |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+------------------------------

Comment (by RavanH):

 Hi @subrataemfluence yes that is what I gather from the code too. At this
 point I'm wondering if the block that is there to save permalink options
 in options-permalink.php, could not be moved over (and adapted) to
 options.php so that the Permalinks form can be submitted to options.php

 This would take care of any custom options fields at the same time as
 being more in the same logic as all other setting pages.

 The Permalinks form would need stuff like `<?php
 settings_fields('general'); ?>` added to make it work, and the part where
 different messages are returned via the 'settings_errors' transient (not
 just "Settings saved.") would need to be integrated into options.php

 Delicate, but possible I would think. I'm prepared to do some work on it
 :)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44459#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list