Making WordPress.org

Opened 6 years ago

Closed 6 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:
Cc:

Description

Hello,

Due to some recent updates to the translations tools it seems jQuery is no longer available on the Consistency page here;
https://translate.wordpress.org/consistency/

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 (https://translate.wordpress.org/getting-started/hide-notice/). 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 - https://wordpress.slack.com/archives/C02RP50LK/p1557355817218100

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.


6 years ago

#2 @garrett-eclipse
6 years ago

Looking at the recent commit by @ocean90 here - https://meta.trac.wordpress.org/changeset/8751
Seems this jquery enqueue was removed;
gp_enqueue_script( 'jquery' );

#3 @ocean90
6 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.