Opened 5 years ago

Closed 5 years ago

#4448 closed defect (bug) (fixed)

Javascript actions broken on Consistency Tool due to 'jQuery is not defined'

Reported by: garrett-eclipse's profile garrett-eclipse Owned by: ocean90's profile ocean90
Milestone: Priority: normal
Component: Translate Site & Plugins Keywords:



Due to some recent updates to the translations tools it seems jQuery is no longer available on the Consistency page here;

This causes a few issues;

  • "View" link list does not work [in "There are x different translations. View"]
  • "Hide" link goes to a blank page ( Checked with different browsers. [in "New to Translating WordPress? Read through our Translator Handbook to get started. Hide" ; when you aren't logged in]

Source -

I confirmed this and found in the javascript console a bunch of errors;
'Uncaught ReferenceError: jQuery is not defined'

Thanks for looking into this.

Change History (3)

This ticket was mentioned in Slack in #polyglots by garrett-eclipse. View the logs.

5 years ago

#2 @garrett-eclipse
5 years ago

Looking at the recent commit by @ocean90 here -
Seems this jquery enqueue was removed;
gp_enqueue_script( 'jquery' );

#3 @ocean90
5 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 8758:

Translate: Enqueue jQuery globally for inline JavaScript.

Fixes #4448.

Note: See TracTickets for help on using tickets.