Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#35772 closed defect (bug) (fixed)

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

Reported by: aidanlane's profile aidanlane Owned by: drewapicture's profile 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 8 years ago.

Download all attachments as: .zip

Change History (5)

8 years ago

#1 @DrewAPicture
8 years 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
8 years 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
8 years ago

Fantastic, thanks @DrewAPicture!

#4 @johnbillion
8 years ago

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