[wp-trac] [WordPress Trac] #65128: Warning on the post page.
WordPress Trac
noreply at wordpress.org
Wed Apr 29 08:23:18 UTC 2026
#65128: Warning on the post page.
-----------------------------------+------------------------------
Reporter: gautammkgarg | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------------------
Comment (by gautammkgarg):
Thanks for your suggestion, charges are implemented and will be released
with next update on Knit Pay. These changes will fix the
print_emoji_styles and wp_admin_bar_styles deprecation notices. as proper
information was missing in the deprecation notice, it was little difficult
to understand that these notices are due to use of wp_head() and
wp_footer() functions. But now it's fixed.
Could you please review the PR also? It will fix the warning also.
Replying to [comment:9 sabernhardt]:
> WordPress added the `print_emoji_styles` and `wp_admin_bar_styles`
deprecation notices in [56682] for plugin and theme authors to update
their code. The new enqueuing functions remove deprecated functions from
the `admin_head` hook within the admin, or `wp_head` on the front end.
[56682] did not account for anyone using `wp_head()` in the admin area.
>
> Knit Pay calls both `wp_head()` and `wp_footer()`, which are front-end
functions that echo output, within the `<body>` of
[https://plugins.trac.wordpress.org/browser/knit-pay/tags/9.3.3.0/views
/redirect-via-html-with-message.php?marks=56#L56 redirect-via-html-with-
message.php]. The only purpose I found for this is to enqueue `jquery` and
`knit-pay-easy-qrcode` (in [https://plugins.trac.wordpress.org/browser
/knit-
pay/tags/9.3.3.0/gateways/UpiQR/Gateway.php?rev=3516547&marks=50,107-108,115,205#L115
UpiQR/Gateway.php]). However, it enqueues all the front-end styles and
scripts, plus `<meta>` and `<link>` tags, in addition to those two
scripts. Theoretically the plugin could use `wp_print_scripts()` instead
of `wp_enqueue_script()`, with `knit-pay-easy-qrcode` registered in the
`wp_print_scripts` action, but I am not sure I should recommend that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65128#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list