WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 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)

#1 @MattyRob
7 years ago

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.

#2 @MattyRob
7 years ago

  • Keywords reporter-feedback added; needs-patch removed

#3 @SergeyBiryukov
7 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 @alfredocubitos
7 years ago

  • Keywords needs-patch added
  • Resolution worksforme deleted
  • Status changed from closed to reopened

#5 @markoheijnen
7 years ago

  • Resolution set to worksforme
  • Status changed from reopened to closed

Hey,
That report shows an error for usage of deprecated/removed function in jQuery. Please try support forums first and if it's an error then create a new trac ticket for it with the errors you have.

Note: See TracTickets for help on using tickets.