#19974 closed enhancement (fixed)
WP_Screen help getter functions missing
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Administration | Version: | 3.3.1 |
| Severity: | normal | Keywords: | has-patch commit |
| 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)
- 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
BenChapman — 15 months 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.
Simple tests: http://unit-tests.trac.wordpress.org/changeset/547
- Resolution set to fixed
- Status changed from accepted to closed
In [19944]:
Note: See
TracTickets for help on using
tickets.

Added getters to wp-admin/includes/screen.php