[wp-trac] [WordPress Trac] #65128: Warning on the post page.
WordPress Trac
noreply at wordpress.org
Mon Apr 27 21:04:28 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:
-----------------------------------+------------------------------
Changes (by sabernhardt):
* keywords: has-patch reporter-feedback => has-patch 2nd-opinion
* version: trunk =>
Comment:
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:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list