Make WordPress Core

Opened 11 years ago

Closed 5 months ago

#31643 closed enhancement (wontfix)

Allow widget sidebars to be loaded open or closed via filtering

Reported by: silb3r's profile silb3r Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2
Component: Widgets Keywords:
Focuses: administration Cc:

Description

This could be useful to allow certain sidebars to always load open or closed.

Attachments (3)

registered_sidebar_wrap_class_filter.diff (478 bytes) - added by silb3r 11 years ago.
Add the "registered_sidebar_wrap_class" filter to enable filtering of sidebars' $wrap_class
31634.diff (933 bytes) - added by welcher 10 years ago.
31634.2.diff (1.3 KB) - added by iamfriendly 10 years ago.
Refreshed the patch and added docs

Download all attachments as: .zip

Change History (8)

@silb3r
11 years ago

Add the "registered_sidebar_wrap_class" filter to enable filtering of sidebars' $wrap_class

#1 @welcher
10 years ago

  • Focuses administration added
  • Keywords needs-docs added

You may want to consider putting the classes into an array then passing that array to the filter. This will allow for much easier manipulation in the filter. See new patch to see what I mean.

Also, the filter needs some inline docs - https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/#4-hooks-actions-and-filters

@welcher
10 years ago

#2 @welcher
10 years ago

  • Keywords dev-feedback added

@iamfriendly
10 years ago

Refreshed the patch and added docs

#3 @iamfriendly
10 years ago

  • Keywords needs-docs removed

Refreshed the patch and added docs for the new filter.

#4 @callumbw95
7 months ago

  • Keywords close added

Hi All,

As this ticket has been sitting for a while and is focused around the widget component I suggest that we close this ticket. Now that the widgets component has been classed as code complete there are very few patches that will be accepted now, and these include security and bug fixes. As of such I have added the close tag.

#5 @mindctrl
5 months ago

  • Keywords dev-feedback close removed
  • Resolution set to wontfix
  • Status changed from new to closed

Hi all, since this ticket has been open for 11+ years, and the way WP handles widgets now has changed, and it's been a few months since it was proposed to be closed, I'm going to close this ticket to help clean up Trac. Feel free to reopen if you think this should be addressed in the WP of today.

Note: See TracTickets for help on using tickets.