[wp-trac] [WordPress Trac] #11249: wpautop no longer a standalone function
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 24 08:32:53 UTC 2009
#11249: wpautop no longer a standalone function
--------------------------+-------------------------------------------------
Reporter: matt | Owner: matt
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Formatting | Version: 2.9
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Something that generally annoys me is inter-file dependencies of wp-
includes. I would like for each of the files to be self-contained so you
can include one and get everything you need from it.
A good recent example of us breaking this is with formatting, and wpautop
in particular. You can no longer include formatting.php and call that
function without including all of WP because it relies on a function
called get_shortcode_regex().
Here's a one-liner that makes wpautop independently useful again with a
simple function_exists.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11249>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list