Changeset 47808 for trunk/src/wp-includes/class-walker-comment.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-comment.php
r46391 r47808 182 182 } 183 183 184 if ( ( 'pingback' == $comment->comment_type || 'trackback'== $comment->comment_type ) && $args['short_ping'] ) {184 if ( ( 'pingback' === $comment->comment_type || 'trackback' === $comment->comment_type ) && $args['short_ping'] ) { 185 185 ob_start(); 186 186 $this->ping( $comment, $depth, $args ); … … 217 217 return; 218 218 } 219 if ( 'div' == $args['style'] ) {219 if ( 'div' === $args['style'] ) { 220 220 $output .= "</div><!-- #comment-## -->\n"; 221 221 } else { … … 236 236 */ 237 237 protected function ping( $comment, $depth, $args ) { 238 $tag = ( 'div' == $args['style'] ) ? 'div' : 'li';238 $tag = ( 'div' === $args['style'] ) ? 'div' : 'li'; 239 239 ?> 240 240 <<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( '', $comment ); ?>> … … 257 257 */ 258 258 protected function comment( $comment, $depth, $args ) { 259 if ( 'div' == $args['style'] ) {259 if ( 'div' === $args['style'] ) { 260 260 $tag = 'div'; 261 261 $add_below = 'comment'; … … 274 274 ?> 275 275 <<?php echo $tag; ?> <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?> id="comment-<?php comment_ID(); ?>"> 276 <?php if ( 'div' != $args['style'] ) : ?>276 <?php if ( 'div' !== $args['style'] ) : ?> 277 277 <div id="div-comment-<?php comment_ID(); ?>" class="comment-body"> 278 278 <?php endif; ?> … … 335 335 ?> 336 336 337 <?php if ( 'div' != $args['style'] ) : ?>337 <?php if ( 'div' !== $args['style'] ) : ?> 338 338 </div> 339 339 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.