[wp-trac] [WordPress Trac] #44306: wp-embed-template.js Sends a message earlier than the wp-embed.js listener will be installed
WordPress Trac
noreply at wordpress.org
Mon Dec 6 10:12:46 UTC 2021
#44306: wp-embed-template.js Sends a message earlier than the wp-embed.js listener
will be installed
--------------------------+--------------------------
Reporter: Cawa-93 | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.9
Component: Embeds | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: javascript
--------------------------+--------------------------
Comment (by SergeyBiryukov):
In [changeset:"52325" 52325]:
{{{
#!CommitTicketReference repository="" revision="52325"
Build/Test Tools: Remove the `replace:emoji-banner-text` Grunt task.
The task was previously used to ensure that `/*! This file is auto-
generated */` comment is not included on front end as part of the inline
emoji detection script.
As the `wp-emoji-loader.js` script is now included via
`file_get_contents()` and `wp_print_inline_script_tag()` instead of
`grunt-include` to simplify the logic, the task does not find anything to
replace and is no longer necessary.
Additionally, include a line break before the `wp-emoji-loader.js` script
content for better line wrapping.
Follow-up to [48096], [50651], [52132].
See #44632, #44306, #53363.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44306#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list