|
@@ 608-612 (lines=5) @@
|
| 605 |
|
return null; |
| 606 |
|
} |
| 607 |
|
|
| 608 |
|
if ( ! is_int( $params[1] ) && ! is_float( $params[1] ) && ! is_string( $params[1] ) && $params[1] !== null && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) ) ) { |
| 609 |
|
trigger_error( esc_html__( 'array_column(): The column key should be either a string or an integer.', 'give' ), E_USER_WARNING ); |
| 610 |
|
|
| 611 |
|
return false; |
| 612 |
|
} |
| 613 |
|
|
| 614 |
|
if ( isset( $params[2] ) && ! is_int( $params[2] ) && ! is_float( $params[2] ) && ! is_string( $params[2] ) && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) ) ) { |
| 615 |
|
trigger_error( esc_html__( 'array_column(): The index key should be either a string or an integer.', 'give' ), E_USER_WARNING ); |
|
@@ 614-618 (lines=5) @@
|
| 611 |
|
return false; |
| 612 |
|
} |
| 613 |
|
|
| 614 |
|
if ( isset( $params[2] ) && ! is_int( $params[2] ) && ! is_float( $params[2] ) && ! is_string( $params[2] ) && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) ) ) { |
| 615 |
|
trigger_error( esc_html__( 'array_column(): The index key should be either a string or an integer.', 'give' ), E_USER_WARNING ); |
| 616 |
|
|
| 617 |
|
return false; |
| 618 |
|
} |
| 619 |
|
|
| 620 |
|
$paramsInput = $params[0]; |
| 621 |
|
$paramsColumnKey = ( $params[1] !== null ) ? (string) $params[1] : null; |