[wp-trac] [WordPress Trac] #23975: force_balance_tags in get_the_content breaks non-HTML formats
WordPress Trac
noreply at wordpress.org
Sun Apr 7 10:05:54 UTC 2013
#23975: force_balance_tags in get_the_content breaks non-HTML formats
-----------------------------+--------------------------
Reporter: ruckus | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Formatting
Version: trunk | Severity: normal
Keywords: |
-----------------------------+--------------------------
The change in r11398 (to fix #9765) breaks Markdown formatted articles
that use angle bracket links: `<http://example.com/>` turning it into
`<http: //example.com></http:>`.
If we call force_balance_tags after adding the more link, we need to
establish filter hooks for formatters. This should have happened before
r11398 already, but because balancing tags wasn't forced, this issue has
not affected sites that disable balancing tags in their preferences.
Typically formatters attach to the `the_content` filter (among others).
This should probably change into a `get_the_content` filter (similar to
`get_the_excerpt`) that is called early on the full content of the post.
I haven't yet decided where the best place for the new filter would, or if
it would be better to undo the force_balance_tags call.
Thoughts? I could work on the change, but would rather prefer some input
first.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23975>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list