Opened 2 years ago
Closed 2 years ago
#60260 closed defect (bug) (duplicate)
Emoji print script throws deprecation error on embed pages
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Script Loader | Keywords: | |
| Focuses: | Cc: |
Description
This is a follow-up to 56682 for #58775.
In WordPress 6.4 print_emoji_styles() was deprecated in favour of wp_enqueue_emoji_styles(). To allow for sites modifying the default actions to remove the Emoji scripts, a test if the previous action had been removed (see source code).
This test doesn't take in to account the embed templates which throw a deprecation error as a result on standard WordPress installs. As demonstrated on this WordPress playground configuration.
On embed templates (is_embed() === true) the action embed_head is used and will need to be tested instead.
cc @spacedmonkey
Change History (1)
Note: See
TracTickets for help on using
tickets.
Fairly certain this is a dupe of #59892. Please reopen if I got it wrong.