#62746 closed defect (bug) (fixed)
after_section not printed if $wp_settings_section doesn't have fields attached
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.8 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Options, Meta APIs | Keywords: | has-patch |
| Focuses: | Cc: |
Description
If a settings section doesn't have any fields attached via $wp_settings_fields the additional after_section argument doesn't get printed. before_section does, however.
Change History (8)
This ticket was mentioned in PR #8055 on WordPress/wordpress-develop by @alpipego.
12 months ago
#3
- Keywords has-patch added
#7
@
12 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from reopened to closed
In 59564:
@SergeyBiryukov commented on PR #8055:
12 months ago
#8
Thanks for the PR! Merged in r59564.
Note: See
TracTickets for help on using
tickets.
When a section did not have fields attached, the loop moved to the next item. By inverting the logic check for fields, this change makes sure the
after_sectionargument gets printed.Trac ticket: https://core.trac.wordpress.org/ticket/62746