[wp-trac] [WordPress Trac] #28672: add_settings_field & co don't return values

WordPress Trac noreply at wordpress.org
Sat Jan 17 21:03:26 UTC 2015


#28672: add_settings_field & co don't return values
---------------------------------------------+-----------------------------
 Reporter:  TJNowell                         |       Owner:
     Type:  enhancement                      |      Status:  new
 Priority:  normal                           |   Milestone:  Awaiting
Component:  Options, Meta APIs               |  Review
 Severity:  normal                           |     Version:  2.7
 Keywords:  needs-unit-tests good-first-bug  |  Resolution:
                                             |     Focuses:  administration
---------------------------------------------+-----------------------------

Comment (by GunGeekATX):

 Thought about it some more and it may not be necessary to check for a
 registered page in add_settings_section().  The menu slug has no
 correspondence to the do_settings_sections() call.

 However, add_settings_field() should do this check for a either a
 registered settings section or one of the built-in pages and sections
 (such as {{{do_settings_fields('media', 'uploads')}}}).  I'll work on a
 patch for this.

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


More information about the wp-trac mailing list