#19974 closed enhancement (fixed)
WP_Screen help getter functions missing
Reported by: | npetetin | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | 3.3.1 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Please add getter functions in WP_Screen for help tab and sidebar:
public function get_help_tab( $id ) { return $this->_help_tabs[ $id ]; } public function get_help_sidebar() { return $this->_help_sidebar; }
Thanks.
Attachments (2)
Change History (9)
#1
@
13 years ago
- Milestone changed from Awaiting Review to 3.4
- Owner set to nacin
- Status changed from new to accepted
- Type changed from feature request to enhancement
#2
@
13 years ago
When looking through this, I noticed that $id isn't actually used to key _help_tabs. (Note it's also _help_tabs, not _help_tab.) This is lame and is something we can get away with breaking compatibility on.
Attached, I'm adding get_help_tab(), get_help_tabs(), and get_help_sidebar(), and then using those helper methods elsewhere in the class.
#4
@
13 years ago
Simple tests: http://unit-tests.trac.wordpress.org/changeset/547
Note: See
TracTickets for help on using
tickets.
Added getters to wp-admin/includes/screen.php