|
@@ 178-183 (lines=6) @@
|
| 175 |
|
$GLOBALS['comment_depth'] = $depth; |
| 176 |
|
$GLOBALS['comment'] = $comment; |
| 177 |
|
|
| 178 |
|
if ( !empty( $args['callback'] ) ) { |
| 179 |
|
ob_start(); |
| 180 |
|
call_user_func( $args['callback'], $comment, $args, $depth ); |
| 181 |
|
$output .= ob_get_clean(); |
| 182 |
|
return; |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
if ( ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) && $args['short_ping'] ) { |
| 186 |
|
ob_start(); |
|
@@ 215-220 (lines=6) @@
|
| 212 |
|
* @param array $args Optional. An array of arguments. Default empty array. |
| 213 |
|
*/ |
| 214 |
|
public function end_el( &$output, $comment, $depth = 0, $args = array() ) { |
| 215 |
|
if ( !empty( $args['end-callback'] ) ) { |
| 216 |
|
ob_start(); |
| 217 |
|
call_user_func( $args['end-callback'], $comment, $args, $depth ); |
| 218 |
|
$output .= ob_get_clean(); |
| 219 |
|
return; |
| 220 |
|
} |
| 221 |
|
if ( 'div' == $args['style'] ) |
| 222 |
|
$output .= "</div><!-- #comment-## -->\n"; |
| 223 |
|
else |