Skip to content

Commit 00dd795

Browse files
authored
escape the scanner bundle url and use add_query_arg to append ver for cache busting
1 parent a861e10 commit 00dd795

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/classes/class-enqueue-frontend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public static function maybe_enqueue_frontend_highlighter() {
161161
'appCssUrl' => EDAC_PLUGIN_URL . 'build/css/frontendHighlighterApp.css?ver=' . EDAC_VERSION,
162162
'widgetPosition' => get_option( 'edac_frontend_highlighter_position', 'right' ),
163163
'editorLink' => get_edit_post_link( $post_id ),
164-
'scannerBundleUrl' => plugin_dir_url( EDAC_PLUGIN_FILE ) . 'build/pageScanner.bundle.js?ver=' . EDAC_VERSION,
164+
'scannerBundleUrl' => esc_url_raw( add_query_arg( 'ver', EDAC_VERSION, plugin_dir_url( __FILE__ ) . 'build/pageScanner.bundle.js' ) ),
165165
'adminThemeColor' => self::get_admin_theme_color(),
166166
]
167167
);

0 commit comments

Comments
 (0)