Opened 12 years ago
Closed 11 years ago
#24319 closed defect (bug) (worksforme)
jQuery not loading in Admin.
Reported by: | willhaynes24 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.6 |
Component: | General | Keywords: | reporter-feedback needs-patch |
Focuses: | Cc: |
Description
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');
Change History (5)
#3
@
12 years ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
Feel free to reopen with the steps to reproduce on a clean install if there's still a problem.
#4
@
11 years ago
- Keywords needs-patch added
- Resolution worksforme deleted
- Status changed from closed to reopened
Hi,
it seems that the bug keeps on working.
Please read http://wordpress.org/support/topic/widgets-not-drag-or-drop-after-update-to-38?replies=5#post-5131939
This is working for me on a vanilla install of 3.6-beta3.
The ABSPATH variable in that file has a trailing slash added so when the variables get concatenated further down the slashes are all present an in the right places with the current code.
Are you running any other plugins on this testing site? Maybe one of them is affecting script loading.