[wp-trac] [WordPress Trac] #18330: Add a Class functionality to wpautop()
WordPress Trac
noreply at wordpress.org
Mon Oct 30 04:51:45 UTC 2017
#18330: Add a Class functionality to wpautop()
-------------------------+----------------------
Reporter: wpsmith | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Formatting | Version:
Severity: normal | Resolution: wontfix
Keywords: has-patch | Focuses:
-------------------------+----------------------
Changes (by dd32):
* status: reopened => closed
* resolution: => wontfix
Comment:
With no other requests in 6 years, I don't think this is a beneficial
change to such a low-level function that's designed to be called as a
filter on `the_content` & friends.
Adding the class to a wrapping element is how you'd do it with standard
CSS/HTML, I don't think Bootstrap is enough of a use-case to add it here.
While I can see the usage within some themes, if you're wanting to do
things like this it seems likely that you'd be better off rolling an extra
output filter on the text you're altering (such as only applying the
change to the first `<p>` or similar element) or running the specific text
you're changing through the various functions you want directly.
I'm re-closing this as `wontfix` pending more requests for the
functionality.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18330#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list