[wp-trac] [WordPress Trac] #41025: get_comment_text and comment_text do not return the same result.
    WordPress Trac 
    noreply at wordpress.org
       
    Tue Jun 13 15:02:39 UTC 2017
    
    
  
#41025: get_comment_text and comment_text do not return the same result.
--------------------------+------------------------------
 Reporter:  BackuPs       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Comment (by swissspidy):
 That's because `comment_text()` displays the comment text instead of
 returning it and runs the `comment_text` filter beforehand. That's similar
 to `get_the_content()` vs `the_content()`. Not really a bug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41025#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list