Skip to:
Content

bbPress.org

Changeset 5135


Ignore:
Timestamp:
10/26/2013 05:44:30 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Remove extraneous closing tag in custom walker start_el() method. Props netweb. Fixes #2455.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/classes.php

    r5065 r5135  
    387387
    388388        // Style for div or list element
    389         if ( 'div' === $args['style'] ) {
    390             $tag = 'div';
     389        if ( !empty( $args['style'] ) && ( 'div' === $args['style'] ) ) {
     390            echo "<div>\n";
    391391        } else {
    392             $tag = 'li';
    393         } ?>
    394 
    395         <<?php echo $tag ?>>
    396 
    397             <?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    398 
    399         </<?php echo $tag ?>>
    400 
    401         <?php
     392            echo "<li>\n";
     393        }
     394
     395        bbp_get_template_part( 'loop', 'single-reply' );
    402396    }
    403397
Note: See TracChangeset for help on using the changeset viewer.