wp-includes/comment.php 1 location
|
@@ 195-201 (lines=7) @@
|
192 |
|
*/ |
193 |
|
$_comment = apply_filters( 'get_comment', $_comment ); |
194 |
|
|
195 |
|
if ( $output == OBJECT ) { |
196 |
|
return $_comment; |
197 |
|
} elseif ( $output == ARRAY_A ) { |
198 |
|
return $_comment->to_array(); |
199 |
|
} elseif ( $output == ARRAY_N ) { |
200 |
|
return array_values( $_comment->to_array() ); |
201 |
|
} |
202 |
|
return $_comment; |
203 |
|
} |
204 |
|
|
wp-includes/post.php 1 location
|
@@ 455-458 (lines=4) @@
|
452 |
|
|
453 |
|
$_post = $_post->filter( $filter ); |
454 |
|
|
455 |
|
if ( $output == ARRAY_A ) |
456 |
|
return $_post->to_array(); |
457 |
|
elseif ( $output == ARRAY_N ) |
458 |
|
return array_values( $_post->to_array() ); |
459 |
|
|
460 |
|
return $_post; |
461 |
|
} |
wp-includes/taxonomy.php 1 location
|
@@ 884-888 (lines=5) @@
|
881 |
|
// Sanitize term, according to the specified filter. |
882 |
|
$_term->filter( $filter ); |
883 |
|
|
884 |
|
if ( $output == ARRAY_A ) { |
885 |
|
return $_term->to_array(); |
886 |
|
} elseif ( $output == ARRAY_N ) { |
887 |
|
return array_values( $_term->to_array() ); |
888 |
|
} |
889 |
|
|
890 |
|
return $_term; |
891 |
|
} |