[wp-trac] [WordPress Trac] #46660: PHP Warning: count()
WordPress Trac
noreply at wordpress.org
Tue Mar 26 16:57:23 UTC 2019
#46660: PHP Warning: count()
--------------------------+-----------------------
Reporter: betimademi | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.2
Component: General | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------
Comment (by garrett-eclipse):
My bad sorry @betimademi I read that as custom code. I see now that
@jorbin pointed it out that it's part of core. Please retract my previous
point to support. Seems like in this case the $old_value just needs to
undergo the is_array check before using count here;
https://github.com/WordPress/WordPress/blob/2dce7181572186e8aed3de418519fefadd427afd
/wp-includes/meta.php#L210
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46660#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list