WordPress.org

Make WordPress Core

Opened 5 weeks ago

Last modified 4 weeks ago

#44104 new defect (bug)

Customize: Attempt to count uncountable value

Reported by: dlh Owned by:
Milestone: 4.9.8 Priority: normal
Severity: normal Version: 4.7
Component: Customize Keywords: has-patch
Focuses: Cc:

Description

WP_Customize_Nav_Menus::search_available_items_query() attempts to count an instance of WP_Customize_Setting, which generates a warning in PHP 7.2.

It looks to me like the intent was to count the value of the setting instead, which should be an array.

Attachments (1)

44104.diff (811 bytes) - added by dlh 5 weeks ago.

Download all attachments as: .zip

Change History (3)

@dlh
5 weeks ago

#1 @SergeyBiryukov
5 weeks ago

  • Milestone changed from Awaiting Review to 4.9.7

#2 @desrosj
4 weeks ago

  • Milestone changed from 4.9.7 to 4.9.8

Moving all tickets in 4.9.7 to 4.9.8.

Note: See TracTickets for help on using tickets.