-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/remove jquery #656
base: develop
Are you sure you want to change the base?
Fix/remove jquery #656
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left you a few questions in this PR.
@@ -464,6 +464,9 @@ private function init_taxonomy_manager( $post ) { | |||
} | |||
|
|||
$out[] = '</div>'; | |||
if ( ! function_exists( 'use_block_editor_for_post' ) || ! use_block_editor_for_post( $post ) ) { | |||
wp_enqueue_script( 'term-ordering', $this->media->plugin->dir_url . '/js/classic-editor.js', array(), $this->media->plugin->version, true ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DavidCramer
Since we are changing the script variable name inside, from TermsOrder
to something more abstract like ClassicEditor
, perhaps we can find a more abstract slug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pereirinha - Good idea.
@@ -1,6 +1,6 @@ | |||
/* global wpAjax */ | |||
|
|||
const TermsOrder = { | |||
const ClassicEditor = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still many references to jQuery in this script.
Can't we remove them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pereirinha Oops, I messed some 🤦 - forgot about the jQuery
over the $
No description provided.