[wp-trac] [WordPress Trac] #8505: Changes in [9809] to
class.wp-scripts.php introduce external dependencies to BackPress
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 6 09:37:49 GMT 2008
#8505: Changes in [9809] to class.wp-scripts.php introduce external dependencies
to BackPress
-----------------------+----------------------------------------------------
Reporter: sambauers | Owner: nbachiyski
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: i18n | Version: 2.7
Severity: normal | Keywords: BackPress, has-patch
-----------------------+----------------------------------------------------
[9808] introduced a call to an external JavaScript function
"convertEntities" from a BackPress file, class.wp-scripts.php - this
creates an external dependancy on the function that resides in wp-admin
/admin-header.php
The attached patch puts that function inline inside of class-wp-
scripts.php, which removes the external dependancy by internalising the
function and also has the added benefit of only loading the function when
it is explicitly required.
--
Ticket URL: <http://trac.wordpress.org/ticket/8505>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list