Opened 9 years ago
Closed 9 years ago
#1508 closed enhancement (maybelater)
DevHub Switch to Private Parser Post Content
Reported by: | lkwdwrd | Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Component: | Developer Hub | Keywords: | has-patch dev-feedback |
Cc: |
Description
If this Github pull request for the parser is accepted (https://github.com/WordPress/phpdoc-parser/pull/165), the next time content is parsed for DevHub, things may look a little funny because there is an expectation in the DevHub theme that the content will get run through wpautop. However, post PR that is no longer the case. To fix that, this updates to remove wpautop form the_content and adds a filter that only runs wpautop on non-parser post types and provides a pre-autop in the instance a Trac ticket is attached and the content is updated.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Switches parser post types to not use wpautop on the_content