|
@@ 711-715 (lines=5) @@
|
| 708 |
|
return null; |
| 709 |
|
} |
| 710 |
|
|
| 711 |
|
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' ) ) ) { |
| 712 |
|
trigger_error( esc_html__( 'array_column(): The column key should be either a string or an integer.', 'give' ), E_USER_WARNING ); |
| 713 |
|
|
| 714 |
|
return false; |
| 715 |
|
} |
| 716 |
|
|
| 717 |
|
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' ) ) ) { |
| 718 |
|
trigger_error( esc_html__( 'array_column(): The index key should be either a string or an integer.', 'give' ), E_USER_WARNING ); |
|
@@ 717-721 (lines=5) @@
|
| 714 |
|
return false; |
| 715 |
|
} |
| 716 |
|
|
| 717 |
|
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' ) ) ) { |
| 718 |
|
trigger_error( esc_html__( 'array_column(): The index key should be either a string or an integer.', 'give' ), E_USER_WARNING ); |
| 719 |
|
|
| 720 |
|
return false; |
| 721 |
|
} |
| 722 |
|
|
| 723 |
|
$paramsInput = $params[0]; |
| 724 |
|
$paramsColumnKey = ( $params[1] !== null ) ? (string) $params[1] : null; |