Changeset 51780 for trunk/src/wp-includes/class-walker-comment.php
- Timestamp:
- 09/09/2021 01:02:46 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-walker-comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-comment.php
r51779 r51780 214 214 * 215 215 * @since 2.7.0 216 * @since 5.9.0 Renamed `$comment` to `$data_object` to match parent class for PHP 8 named parameter support. 216 217 * 217 218 * @see Walker::end_el() 218 219 * @see wp_list_comments() 219 220 * 220 * @param string $output Used to append additional content. Passed by reference.221 * @param WP_Comment $ comment The current comment object. Default current comment.222 * @param int $depth Optional. Depth of the current comment. Default 0.223 * @param array $args Optional. An array of arguments. Default empty array.224 */ 225 public function end_el( &$output, $ comment, $depth = 0, $args = array() ) {221 * @param string $output Used to append additional content. Passed by reference. 222 * @param WP_Comment $data_object Comment data object. 223 * @param int $depth Optional. Depth of the current comment. Default 0. 224 * @param array $args Optional. An array of arguments. Default empty array. 225 */ 226 public function end_el( &$output, $data_object, $depth = 0, $args = array() ) { 226 227 if ( ! empty( $args['end-callback'] ) ) { 227 228 ob_start(); 228 call_user_func( $args['end-callback'], $comment, $args, $depth ); 229 call_user_func( 230 $args['end-callback'], 231 $data_object, // The current comment object. 232 $args, 233 $depth 234 ); 229 235 $output .= ob_get_clean(); 230 236 return;
Note: See TracChangeset
for help on using the changeset viewer.