- Timestamp:
- 09/09/2020 03:53:50 AM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r48838 r48961 482 482 483 483 // Convert to WP_Comment instances. 484 array_walk( $_comments, 'get_comment' ); 485 $comments = $_comments; 484 $comments = array_map( 'get_comment', $_comments ); 486 485 487 486 if ( $this->query_vars['hierarchical'] ) { -
trunk/src/wp-includes/comment.php
r48822 r48961 193 193 * @return WP_Comment|array|null Depends on $output value. 194 194 */ 195 function get_comment( &$comment = null, $output = OBJECT ) {195 function get_comment( $comment = null, $output = OBJECT ) { 196 196 if ( empty( $comment ) && isset( $GLOBALS['comment'] ) ) { 197 197 $comment = $GLOBALS['comment'];
Note: See TracChangeset
for help on using the changeset viewer.