jQuery not loading in Admin.
|Reported by:||willhaynes24||Owned by:|
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.
define( 'WPINC', 'wp-includes' );
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:
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)
comment:3 SergeyBiryukov — 8 months ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
comment:4 alfredocubitos — 7 weeks ago
- Keywords needs-patch added
- Resolution worksforme deleted
- Status changed from closed to reopened