Opened 11 years ago
Closed 11 years ago
#25353 closed enhancement (fixed)
Hook Docs: wp-admin/admin-header.php
Reported by: | ericlewis | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Inline Docs | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Attachments (2)
Change History (10)
#2
follow-up:
↓ 3
@
11 years ago
- Keywords needs-patch added; has-patch removed
- Milestone changed from Awaiting Review to 3.7
Looking at 25353.diff:
- Space out the specific action lines per coding standards
- L#199-219, you'll need to convert the if/elseif/else to use curly braces since each conditional is now multi-line with the addition of the docblocks
- There needs to be a long description in the block for
admin_body_class
mentioning that this differs from the other*_class
filter hooks in that certain admin body classes cannot be filtered out, namelywp-admin wp-core-ui no-js
- Should be "Fires in <head> for a specific admin page." L#109
- Should be "Fires in <head> for all admin pages." L#116
- Generally: "this specific admin page." should be more like "a specific admin page based on $hook_suffix."
#3
in reply to:
↑ 2
;
follow-up:
↓ 4
@
11 years ago
Replying to DrewAPicture:
- Space out the specific action lines per coding standards
Do you mean to space out the hook function calls according to coding standards?
#4
in reply to:
↑ 3
@
11 years ago
Replying to ericlewis:
Replying to DrewAPicture:
- Space out the specific action lines per coding standards
Do you mean to space out the hook function calls according to coding standards?
Yes, just like we discussed in the weekly chat yesterday.
do_action('admin_head');
becomes do_action( 'admin_head' );
and so on.
#5
@
11 years ago
- Adds spacing to match WP PHP coding standards.
- Converts the admin_notices if block into curly brace blocks for better legibility.
- Long description for admin_body_class.
- Add "Fires in" for <head> hooks.
- Change "specific admin page" to "specific admin page based on $hook_suffix" where applicable.
Note: See
TracTickets for help on using
tickets.
attachment:25353.diff adds docblocks for admin_title, admin_enqueue_scripts, admin_print_styles-$hook_suffix, admin_print_styles, admin_print_scripts-$hook_suffix, admin_print_scripts, admin_head-$hook_suffix, admin_head, admin_body_class, in_admin_header, network_admin_notices, user_admin_notices, admin_notices, and all_admin_notices.