[wp-trac] [WordPress Trac] #62746: after_section not printed if $wp_settings_section doesn't have fields attached

WordPress Trac noreply at wordpress.org
Sat Dec 28 22:08:34 UTC 2024


#62746: after_section not printed if $wp_settings_section doesn't have fields
attached
--------------------------------+-----------------------------
 Reporter:  alpipego            |       Owner:  SergeyBiryukov
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  6.8
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:
--------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59564" 59564]:
 {{{
 #!CommitTicketReference repository="" revision="59564"
 Options, Meta APIs: Ensure `after_section` is printed for sections without
 any fields.

 This brings consistency with the `before_section` HTML content, which did
 get printed in `do_settings_sections()` regardless of whether the settings
 section has any fields attached.

 Follow-up to [8855], [21742], [54247].

 Props alpipego, SergeyBiryukov.
 Fixes #62746.
 }}}

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


More information about the wp-trac mailing list