[wp-trac] [WordPress Trac] #44632: Properly enqueue wp-embed

WordPress Trac noreply at wordpress.org
Mon Dec 6 10:12:46 UTC 2021

#44632: Properly enqueue wp-embed
 Reporter:  alpipego                 |       Owner:  westonruter
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  5.9
Component:  Embeds                   |     Version:  4.4
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch has-unit-      |     Focuses:  javascript,
  tests                              |  performance

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/44632#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list