WordPress.org

Make WordPress Core

Opened 9 months ago

Last modified 6 days ago

#24878 new enhancement

is_registered_sidebar()

Reported by: GaryJ Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Widgets Keywords: has-patch
Focuses: Cc:

Description

is_active_sidebar() looks at whether a sidebar has any widgets in it, but there doesn't seem to be a function that purely checks to see if a sidebar is still registered within the $wp_registered_sidebars global, irrespective of whether it would have any widgets in it or not.

Attachments (1)

24878.diff (897 bytes) - added by GaryJ 9 months ago.
Adds is_registered_sidebar() to compliment register_sidebar() and unregister_sidebar().

Download all attachments as: .zip

Change History (3)

GaryJ9 months ago

Adds is_registered_sidebar() to compliment register_sidebar() and unregister_sidebar().

Note: See TracTickets for help on using tickets.