PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 1.13.0
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v1.13.0
2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 0.0.2 0.0.3 All 96 releases
← All changes | admin/admin.php +15 -12 1.12.31.13.0 View file →
@@ -1040,21 +1040,24 @@
1040 1040 }
1041 1041 $quick_sidebar_allowed_blocks = get_option( 'srfm_quick_sidebar_allowed_blocks' );
1042 1042 $quick_sidebar_allowed_blocks = ! empty( $quick_sidebar_allowed_blocks ) && is_array( $quick_sidebar_allowed_blocks ) ? $quick_sidebar_allowed_blocks : $default_allowed_quick_sidebar_blocks;
1043 1043 $srfm_ajax_nonce = wp_create_nonce( 'srfm_ajax_nonce' );
1044 - wp_enqueue_script( SRFM_SLUG . '-quick-action-siderbar', SRFM_URL . 'assets/build/quickActionSidebar.js', [], SRFM_VER, true );
1045 - wp_localize_script(
1046 - SRFM_SLUG . '-quick-action-siderbar',
1047 - SRFM_SLUG . '_quick_sidebar_blocks',
1048 - [
1049 - 'allowed_blocks' => $quick_sidebar_allowed_blocks,
1050 - 'srfm_enable_quick_action_sidebar' => $srfm_enable_quick_action_sidebar,
1051 - 'srfm_ajax_nonce' => $srfm_ajax_nonce,
1052 - 'srfm_ajax_url' => admin_url( 'admin-ajax.php' ),
1053 - ]
1054 - );
1055 1044
1056 - $script_translations_handlers[] = SRFM_SLUG . '-quick-action-siderbar';
1045 + if ( Helper::is_sureforms_admin_page() ) {
1046 + wp_enqueue_script( SRFM_SLUG . '-quick-action-siderbar', SRFM_URL . 'assets/build/quickActionSidebar.js', [], SRFM_VER, true );
1047 + wp_localize_script(
1048 + SRFM_SLUG . '-quick-action-siderbar',
1049 + SRFM_SLUG . '_quick_sidebar_blocks',
1050 + [
1051 + 'allowed_blocks' => $quick_sidebar_allowed_blocks,
1052 + 'srfm_enable_quick_action_sidebar' => $srfm_enable_quick_action_sidebar,
1053 + 'srfm_ajax_nonce' => $srfm_ajax_nonce,
1054 + 'srfm_ajax_url' => admin_url( 'admin-ajax.php' ),
1055 + ]
1056 + );
1057 +
1058 + $script_translations_handlers[] = SRFM_SLUG . '-quick-action-siderbar';
1059 + }
1057 1060
1058 1061 /**
1059 1062 * Enqueuing SureTriggers Integration script.
1060 1063 * This script loads suretriggers iframe in Intergations tab.