#25375 closed defect (bug) (fixed)
Hook Docs (47): wp-admin/includes/media.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Media | Keywords: | has-patch commit |
| Focuses: | docs | Cc: |
Description (last modified by )
Attached patch documents the following hooks:
Filters:
media_upload_tabsmedia_upload_default_tabimage_send_to_editordisable_captionsimage_add_caption_shortcodemedia_buttons_context$type_upload_iframe_srcattachment_fields_to_savemedia_send_to_editor$type_send_to_editor_urlimage_send_to_editor_urlimage_size_names_chooseattachment_fields_to_editget_media_item_argsmedia_metaupload_post_paramsplupload_initmedia_upload_form_urltype_url_form_mediamedia_upload_mime_type_links
Actions:
admin_enqueue_scriptsadmin_print_styles-media-upload-popupadmin_print_stylesadmin_print_scripts-media-upload-popupadmin_print_scriptsadmin_head-media-upload-popupadmin_headadmin_head_{$content_func}admin_print_footer_scriptspre-upload-uipre-plupload-upload-uipost-plupload-upload-uipre-html-upload-uipost-html-upload-uipost-upload-ui
Attachments (7)
Change History (25)
#1
@
12 years ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to 3.7
25375.diff takes a first-run at all filters and actions in the file.
Todo:
- Fill in @since tags
- Clarify and standardize language on back-compat/legacy hooks
- Secondary Review
#3
@
12 years ago
25375.3.diff completes all @since tags, minor alignment and typo fixes.
Todo: Clarify and standardize language on back-compat/legacy hooks
#4
follow-up:
↓ 5
@
12 years ago
http://cl.ly/RX6j: Shouldn't the indentation be whitespaces instead of tabs?
#5
in reply to:
↑ 4
@
12 years ago
Replying to ocean90:
http://cl.ly/RX6j: Shouldn't the indentation be whitespaces instead of tabs?
There is 1 tab at the beginning of the line to indent the block to match the indentation of the code.
The block itself uses spaces, including the alignment of the parameters list.
#6
follow-up:
↓ 7
@
12 years ago
The block itself uses spaces.
Correct. But why there are not aligned, see screenshot? In 25375.2.diff it looks good.
#7
in reply to:
↑ 6
@
12 years ago
Replying to ocean90:
The block itself uses spaces.
Correct. But why there are not aligned, see screenshot? In 25375.2.diff it looks good.
I checked my editor, and realized that I wasn't using a monospace font. Switched to Consolas, and can now see the alignment issue you're referring to. Uploading a new patch with those fixes now. Please let me know if you still see any lingering alignment issues in the new patch.
Thanks for bringing this to my attention. :)
#8
follow-up:
↓ 9
@
12 years ago
Please let me know if you still see any lingering alignment issues in the new patch.
Looks good now. :)
Just a question: Why there are some double @since tags?
#9
in reply to:
↑ 8
@
12 years ago
Replying to ocean90:
Please let me know if you still see any lingering alignment issues in the new patch.
Looks good now. :)
Just a question: Why there are some double
@sincetags?
Partly it's a note to myself that its media back-compat, but also because I still need to hunt down whether the hook specifically moved or was just copied there, or the hook changed. On some functions we've done multiple @since lines to show important changes, e.g. @since 2.x.x, @since 3.x.x important thing happened.
They don't have to stay, at this point they're just a placeholder until I can figure the history of the back-compat hooks.
#10
@
12 years ago
- Milestone changed from 3.7 to Awaiting Review
- Owner set to DrewAPicture
- Status changed from new to reviewing
#11
follow-up:
↓ 12
@
12 years ago
Are the duplicate mentions in this patch being updated in another ticket? duplicate_hook
To the new standard http://make.wordpress.org/core/handbook/inline-documentation-standards/php-documentation-standards/#4-1-duplicate-hooks
#12
in reply to:
↑ 11
@
12 years ago
Replying to topdown:
Are the duplicate mentions in this patch being updated in another ticket? duplicate_hook
To the new standard http://make.wordpress.org/core/handbook/inline-documentation-standards/php-documentation-standards/#4-1-duplicate-hooks
Those will be handled in this ticket. I'll refresh the patch today.
#13
@
12 years ago
Patch updated - fixed duplicate hook format, minor docblock changes.
@todo:
- Investigate media back compat for some hooks per @DrewAPicture in comment:9.
- Change keys to $var in
@paramlines, per documentation standard, formedia_submitbox_misc_sectionsandaudio_submitbox_misc_sectionshooks. Both were added in 3.7.0 before the standard was changed.
#14
@
12 years ago
- Summary changed from Hook Docs: wp-admin/includes/media.php to Hook Docs (47): wp-admin/includes/media.php
#15
@
12 years ago
- Keywords commit added
- Milestone changed from Awaiting Review to 3.9
25375.6.diff finally makes a decision about handling renamed hooks, fixes some version numbers, and tightens up some descriptions.
I opted for the double @since, so as to indicate both original hook names (where changed), and when.
First pass, missing @since values