Make WordPress Core

Changeset 14274


Ignore:
Timestamp:
04/28/2010 07:17:20 AM (16 years ago)
Author:
westi
Message:

Revert [14268] - It is much better to use JavaScript for this kind of enhancement. Output buffering is too fragile. See #12564.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r14268 r14274  
    15161516                'cancel_reply_link'    => __( 'Cancel reply' ),
    15171517                'label_submit'         => __( 'Post Comment' ),
    1518                 'echo'                 => true,
    15191518        );
    15201519
    15211520        $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );
    1522         ob_start();
     1521
    15231522        ?>
    15241523                <?php if ( comments_open() ) : ?>
    … …  
    15581557                <?php else : ?>
    15591558                        <?php do_action( 'comment_form_comments_closed' ); ?>
    1560                 <?php endif;
    1561         $form = apply_filters( 'comment_form_output', ob_get_clean(), $args );
    1562         if ( $args['echo'] )
    1563                 echo $form;
    1564         else
    1565                 return $form;
     1559                <?php endif; ?>
     1560        <?php
    15661561}
    15671562
Note: See TracChangeset for help on using the changeset viewer.