[wp-trac] [WordPress Trac] #41025: get_comment_text and comment_text do not return the same result.

WordPress Trac noreply at wordpress.org
Thu Jun 15 08:56:08 UTC 2017


#41025: get_comment_text and comment_text do not return the same result.
--------------------------+----------------------
 Reporter:  BackuPs       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Comments      |     Version:  4.8
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by swissspidy):

 * status:  reopened => closed
 * resolution:   => invalid


Comment:

 Sure.

 Instead of adding the functions to the `get_comment_text()` filter you can
 also use something like this:

 {{{#!php
 $comment_text_with_paragraphs_and_stuff = apply_filters( 'comment_text',
 get_comment_text( $my_comment_id ) );
 }}}

 Please note that discussion can continue to happen on closed tickets.
 However, for further questions like this I'd recommend heading to
 wordpress.org/support.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41025#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list