Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/classes/class-enqueue-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static function maybe_enqueue_frontend_highlighter() {
'appCssUrl' => EDAC_PLUGIN_URL . 'build/css/frontendHighlighterApp.css?ver=' . EDAC_VERSION,
'widgetPosition' => get_option( 'edac_frontend_highlighter_position', 'right' ),
'editorLink' => get_edit_post_link( $post_id ),
'scannerBundleUrl' => plugin_dir_url( EDAC_PLUGIN_FILE ) . 'build/pageScanner.bundle.js',
'scannerBundleUrl' => plugin_dir_url( EDAC_PLUGIN_FILE ) . 'build/pageScanner.bundle.js?ver=' . EDAC_VERSION,
Comment thread
pattonwebz marked this conversation as resolved.
Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added testScannerBundleUrlIncludesVersionQueryString to EnqueueFrontendTest in commit 144bd77. It enqueues the frontend highlighter as an admin, then asserts the localized edacFrontendHighlighterApp data contains both scannerBundleUrl and ver=EDAC_VERSION.

Comment thread
pattonwebz marked this conversation as resolved.
Outdated
'adminThemeColor' => self::get_admin_theme_color(),
]
);
Expand Down
Loading