[wp-trac] [WordPress Trac] #53771: What about an equivalent of `is_active_widget()` for Widget Blocks ?
WordPress Trac
noreply at wordpress.org
Sat Jul 24 15:10:11 UTC 2021
#53771: What about an equivalent of `is_active_widget()` for Widget Blocks ?
----------------------------------------+-----------------------------
Reporter: imath | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Widgets | Version: 5.8
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------------
Changes (by TimothyBlynJacobs):
* keywords: has-patch => has-patch needs-unit-tests
* version: => 5.8
* milestone: Awaiting Review => Future Release
Comment:
This makes a lot of sense to me to add. We'll need unit tests for this.
I think I would switch the function name around a bit to
`wp_widget_has_block` or maybe something like `is_active_widget_block` for
more parity with the existing `is_active_widget`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53771#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list