[wp-trac] [WordPress Trac] #24319: jQuery not loading in Admin.
WordPress Trac
noreply at wordpress.org
Sat May 11 18:24:45 UTC 2013
#24319: jQuery not loading in Admin.
--------------------------+-----------------------------
Reporter: willhaynes24 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
I was encountering an odd bug after updating to the newest nightly.
It appeared that no js scripts were being loaded by load-scripts in wp-
admin. Since CSS was obviously being included, I compared load-
scripts.php and load-styles.php and found what appears to be a missing
directory separator.
Changing
define( 'WPINC', 'wp-includes' );
to
define( 'WPINC', '/wp-includes' );
in wp-admin/load-scripts.php seems to have fixed the problem. I'm not
sure if this is the correct fix, but I did find it odd that load-
scripts.php used different syntaxes to include their respective filenames:
from wp-admin/load-scripts.php:
require(ABSPATH . WPINC . '/script-loader.php');
require(ABSPATH . WPINC . '/version.php');
and from wp-admin/load-styles.php
require(ABSPATH . '/wp-includes/script-loader.php');
require(ABSPATH . '/wp-includes/version.php');
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24319>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list