[wp-trac] [WordPress Trac] #35385: Able to get raw content by calling get_the_archive_description
WordPress Trac
noreply at wordpress.org
Sat Jan 9 12:07:01 UTC 2016
#35385: Able to get raw content by calling get_the_archive_description
-------------------------+-----------------------------
Reporter: wido | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Calling the '''get_the_archive_description''' the content will be passed
to some filters by the '''sanitize_term_field''' function, one of them is
wpautop.
To add some class to the p tag the only way is to perform a preg_replace
but that can create issue with other callbacks hooked into
'get_the_archive_description'.
Would be great to have a param like $context as the '''get_term_field'''
has to able to pass '''raw''' and retrieve only the text.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35385>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list