Skip to content

Commit 36f5b58

Browse files
authored
Merge pull request #249 from Automattic/fix-enqueued-scripts-embed
Don't enqueue scripts in embeds
2 parents 99fb67b + e503554 commit 36f5b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function main() {
2121

2222
function register_scripts() {
2323
add_action(
24-
'init',
24+
'wp_enqueue_scripts',
2525
function () {
2626
$json_data = wp_json_encode(
2727
array(

0 commit comments

Comments
 (0)