Skip to content

Commit

Permalink
Only load editor script if block editor (#2837)
Browse files Browse the repository at this point in the history
  • Loading branch information
yscik authored Jul 29, 2024
1 parent 4475fed commit a75691e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/class-wp-job-manager-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function admin_enqueue_scripts() {
wp_enqueue_script( 'job_manager_admin_js' );

WP_Job_Manager::register_script( 'job_tags_upsell_js', 'js/admin/job-tags-upsell.js', [], true );
if ( ! class_exists( 'WP_Job_Manager_Job_Tags' ) ) {
if ( ! class_exists( 'WP_Job_Manager_Job_Tags' ) && $screen->is_block_editor() ) {
wp_enqueue_script( 'job_tags_upsell_js' );
}

Expand Down

0 comments on commit a75691e

Please sign in to comment.