[wp-trac] [WordPress Trac] #60260: Emoji print script throws deprecation error on embed pages
WordPress Trac
noreply at wordpress.org
Mon Jan 15 22:11:23 UTC 2024
#60260: Emoji print script throws deprecation error on embed pages
---------------------------+--------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.4.3
Component: Script Loader | Version:
Severity: normal | Keywords:
Focuses: |
---------------------------+--------------------
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 [https://github.com/WordPress/wordpress-
develop/blob/24531a9afc8ef75822da45b85c147b492674e715/src/wp-
includes/formatting.php#L5866-L5871 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
[https://playground.wordpress.net/?php=8.0&wp=nightly&storage=none#%7B%22$schema%22:%22https://playground.wordpress.net
/blueprint-
schema.json%22,%22landingPage%22:%22/?page_id=2&embed=1%22,%22steps%22:%5B%7B%22step%22:%22defineWpConfigConsts%22,%22consts%22:%7B%22WP_DEBUG%22:true%7D%7D%5D%7D
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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60260>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list