src/wp-includes/comment.php 1 location
|
@@ 203-209 (lines=7) @@
|
| 200 |
|
*/ |
| 201 |
|
$_comment = apply_filters( 'get_comment', $_comment ); |
| 202 |
|
|
| 203 |
|
if ( $output == OBJECT ) { |
| 204 |
|
return $_comment; |
| 205 |
|
} elseif ( $output == ARRAY_A ) { |
| 206 |
|
return $_comment->to_array(); |
| 207 |
|
} elseif ( $output == ARRAY_N ) { |
| 208 |
|
return array_values( $_comment->to_array() ); |
| 209 |
|
} |
| 210 |
|
return $_comment; |
| 211 |
|
} |
| 212 |
|
|
src/wp-includes/post.php 1 location
|
@@ 539-542 (lines=4) @@
|
| 536 |
|
|
| 537 |
|
$_post = $_post->filter( $filter ); |
| 538 |
|
|
| 539 |
|
if ( $output == ARRAY_A ) |
| 540 |
|
return $_post->to_array(); |
| 541 |
|
elseif ( $output == ARRAY_N ) |
| 542 |
|
return array_values( $_post->to_array() ); |
| 543 |
|
|
| 544 |
|
return $_post; |
| 545 |
|
} |
src/wp-includes/taxonomy.php 1 location
|
@@ 785-789 (lines=5) @@
|
| 782 |
|
// Sanitize term, according to the specified filter. |
| 783 |
|
$_term->filter( $filter ); |
| 784 |
|
|
| 785 |
|
if ( $output == ARRAY_A ) { |
| 786 |
|
return $_term->to_array(); |
| 787 |
|
} elseif ( $output == ARRAY_N ) { |
| 788 |
|
return array_values( $_term->to_array() ); |
| 789 |
|
} |
| 790 |
|
|
| 791 |
|
return $_term; |
| 792 |
|
} |