WordPress.org

Make WordPress Core

Opened 20 months ago

Closed 19 months ago

Last modified 19 months ago

#35772 closed defect (bug) (fixed)

add_settings_section and add_settings_field callback param should be of 'callable' type

Reported by: aidanlane Owned by: DrewAPicture
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: docs Cc:

Attachments (1)

template.patch (3.1 KB) - added by aidanlane 20 months ago.

Download all attachments as: .zip

Change History (5)

#1 @DrewAPicture
19 months ago

  • Focuses docs added; administration removed
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.5
  • Owner set to DrewAPicture
  • Status changed from new to reviewing

Hi @aidanlane, nice catch and thanks for the patch!

#2 @DrewAPicture
19 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 36642:

Docs: Update the type for $callback parameters to callable in DocBlocks for add_settings_section() and add_settings_field().

Props aidanlane.
Fixes #35772.

#3 @aidanlane
19 months ago

Fantastic, thanks @DrewAPicture!

#4 @johnbillion
19 months ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.