WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41025, comment 2


Ignore:
Timestamp:
06/13/2017 04:24:54 PM (3 years ago)
Author:
BackuPs
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41025, comment 2

    initial v1  
    1919}}}
    2020
    21 The similar thing does not happen in the_content() get_the_content()as they both return as far as i know
     21The similar thing does not happen with the_content() and get_the_content()as they both return as far as i know
    2222
    2323
     
    3030}}}
    3131
    32 Can you explain more as both functions comment_text() and get_comment_text() call the filter and is till dont understand the difference in result.
     32Can you explain more as both functions comment_text() and get_comment_text() call the filter and i still don't understand where the difference in result is coming from.
    3333
    34 comment_text does the echo of the comment whereas using get_comment_text returns the string. But that string should be exactly the same without any difference in the text.
     34comment_text does the echo of the comment whereas using get_comment_text returns the string. But that string should be exactly the same without any difference in the text as comment_text.  So why does get_comment_text strip all p-tags and comment_text does not?
    3535