[wp-trac] [WordPress Trac] #53801: Block-based Widgets Screen does action wp_footer after each Widget
WordPress Trac
noreply at wordpress.org
Tue Jul 27 15:51:41 UTC 2021
#53801: Block-based Widgets Screen does action wp_footer after each Widget
--------------------------+-----------------------------
Reporter: MadtownLems | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I've reported this on Github already
(https://github.com/WordPress/gutenberg/issues/33580), but I'm really not
sure the right place to post issues these days so figured I'd post here as
well to make sure it gets looked at before 5.8.1
WordPress 5.8's Block-based Widgets screen does action wp_footer in
between each widget. This action has historically been reserved for only
the front-end of the site (as admin_footer is the back-end version). It's
where many plugins output things in the footer.
This can result in a very broken and ugly widgets screen, with all sorts
of unintended content showing up. (In our specific case, we noticed
because a bunch of standardized legal text and brand images were showing,
but I've read other reports of GPDR notices or "chat with us"
implementations as well.)
Sample code for proof of concept:
{{{#!php
<?php
add_action( 'wp_footer', 'wp_footer_proof_of_concept' );
function wp_footer_proof_of_concept() {
echo "Why is this being output on the Widgets screen?";
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53801>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list