Opened 12 years ago
Closed 12 years ago
#25357 closed defect (bug) (fixed)
Hook Docs: wp-admin/includes/class-wp-plugin-install-list-table.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.7 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Inline Docs | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
Attached patch has docs for the filters
install_plugins_tabs
install_plugins_nonmenu_tabs
install_plugins_table_api_args_$tab
plugin_install_action_links
and actions
install_plugins_table_header
in wp-admin/includes/class-wp-plugin-install-list-table.php.
Attachments (3)
Change History (10)
#2
@
12 years ago
- Keywords has-patch added; needs-patch removed
Sorry about that — I thought I needed to create the ticket first. Patch attached.
#3
@
12 years ago
- Keywords needs-patch added; reporter-feedback has-patch removed
- Milestone changed from Awaiting Review to 3.7
Hi Naomi, thanks for the patch :)
Some notes on 25357.diff:
install_plugins_tabsfilter: "Filter the tabs that are shown on the page." needs to be more specific. It's best to document hooks as if they are independent of each other. So maybe, "Filter the tabs that are shown on the Plugin Install screen." For the @param description, maybe "An array of tabs used on the Plugin Install screen." or somethinginstall_plugins_nonmenu_tabsfilter: "Filter the $nonmenu_tabs." isn't very helpful information. Perhaps something like "Filter tabs not associated with a menu item." Same for the @param description. I know it's copied from the function, but it's kind of vague and unhelpful. Try to be clear and direct.install_plugins_table_api_args_$tabsfilter: "Plugin API" should be "Plugin Installer API", "the $tab." should be "each tab."install_plugins_table_headeraction: Again, think of all hooks as independent of each other, so you need to provide context in the description. "Fires before table header" should be "Fires before Plugin Install table header"plugin_install_action_linksfilter: "the plugin." should be generalized to "a plugin."
#4
@
12 years ago
- Milestone changed from 3.7 to Awaiting Review
- Owner set to kpdesign
- Status changed from new to reviewing
Note: See
TracTickets for help on using
tickets.
@naomicbush: It looks like you maybe forgot to attach your patch.