Skip to content

Commit

Permalink
Only load editor script if block editor
Browse files Browse the repository at this point in the history
  • Loading branch information
yscik committed Jul 22, 2024
1 parent ea40602 commit a4f4e4c
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 a4f4e4c

Please sign in to comment.