Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43392, comment 45


Ignore:
Timestamp:
09/12/2019 07:35:35 AM (5 years ago)
Author:
grapplerulrich
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43392, comment 45

    initial v1  
    2626The inline documentation still needs to be updated for the support or arrays and objects in `register_meta()`
    2727https://github.com/WordPress/WordPress/blob/master/wp-includes/meta.php#L1126-L1127
     28
     29I also noticed with the help of PHPCS that `in_array()` is not using strict comparison.
     30{{{
     31if ( ! in_array( $type, array( 'string', 'boolean', 'integer', 'number', 'array', 'object' ) ) ) {
     32}}}
     33