Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 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 9 years ago.

Download all attachments as: .zip

Change History (5)

@aidanlane
9 years ago

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

Fantastic, thanks @DrewAPicture!

#4 @johnbillion
9 years ago

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