Skip to content

Commit

Permalink
Merge pull request #249 from Automattic/fix-enqueued-scripts-embed
Browse files Browse the repository at this point in the history
Don't enqueue scripts in embeds
  • Loading branch information
akirk authored Apr 3, 2024
2 parents 99fb67b + e503554 commit 36f5b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function main() {

function register_scripts() {
add_action(
'init',
'wp_enqueue_scripts',
function () {
$json_data = wp_json_encode(
array(
Expand Down

0 comments on commit 36f5b58

Please sign in to comment.