#25532 closed defect (bug) (fixed)
Hooks Docs: wp-admin/edit-tags.php
Reported by: | pauldewouters | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Inline Docs | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Added hook documentation for the following actions/filters found in wp-admin/edit-tags.php:
- Requires / Includes
term_updated_messages
'after-' . $taxonomy . '-table', $taxonomy
add_category_form_pre
add_link_category_form_pre
add_tag_form_pre
$taxonomy . '_pre_add_form', $taxonomy
$taxonomy . '_term_new_form_tag'
taxonomy_parent_dropdown_args
add_tag_form_fields
- `$taxonomy . '_add_form_fields', $taxonomy
edit_category_form
edit_link_category_form
add_tag_form
$taxonomy . '_add_form', $taxonomy
Attachments (4)
Change History (14)
#2
follow-up:
↓ 3
@
11 years ago
thanks for the feedback, I have to say I wasn't sure at all about this.
I tried to replicate the comment styles from the Handbook, so that's why I reformatted the require/include comments to multiple lines.
http://make.wordpress.org/core/handbook/inline-documentation-standards/php-documentation-standards/#3-requires-and-includes
I'll make the other corrections as suggested. I did actually hesitate about adding comments for deprecated hooks. Now I know
#3
in reply to:
↑ 2
@
11 years ago
Replying to pauldewouters:
I tried to replicate the comment styles from the Handbook, so that's why I reformatted the require/include comments to multiple lines.
http://make.wordpress.org/core/handbook/inline-documentation-standards/php-documentation-standards/#3-requires-and-includes
@pauldewouters:
The requires/includes will be documented during the functional docs review. The current hook docs effort focuses on documenting only the hooks.
We would like to keep the efforts separate patch-wise. By doing this, in the event a hook docs patch would need to be reverted for some reason, we wouldn't lose changes made to other doc blocks in the same patch.
Glad to see you joining in to help. :)
#4
@
11 years ago
- Keywords needs-patch added; has-patch removed
- Owner set to rzen
- Status changed from new to reviewing
- Type changed from enhancement to defect (bug)
#5
follow-up:
↓ 6
@
11 years ago
I made the changes, but not too sure what the @param
tag should be for this: (object)array('parent' => 0)
#6
in reply to:
↑ 5
@
11 years ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to 3.8
Replying to pauldewouters:
I made the changes, but not too sure what the
@param
tag should be for this:(object)array('parent' => 0)
Maybe something like "An array of arguments, cast to an object."
We'll review your second patch and get back to you with some notes shortly.
#7
@
11 years ago
- Keywords needs-testing added
- Owner changed from rzen to DrewAPicture
25532.diff takes steps to cleanup the previous patch:
$taxonomy
is astring
, the taxonomy slug really, throughout the file, not an object.- Standardizes nomenclature for the "Add Term" screen for taxonomies
- Adds a hash notation for the
$dropdown_args
parameter in thetaxonomy_parent_dropdown_args
filter - Standardizes affected lines with braces per the new coding standards change
- Some coding standards spacing in the affected lines
As some small code changes were made in the latest patch, all of the above screens should be tested prior to commit.
#8
@
11 years ago
- Keywords commit added; needs-testing removed
Tested all hooks and screens with 25532.2.diff.
Overall:
@since
tags should follow the 3-digit version notation, e.g. x.x.x'after-' . $taxonomy . '-table'
add_category_form_pre
add_link_category_form_pre
add_tag_form_pre
{$taxonomy}_pre_add_form
. Add@deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
to their docblocks, immediately after the@since
tag (See PHPDoc Standards).@param
tags are incorrect, the data is being cast as an object, not an array, so we do not need the hash notation (which is a shame, because you wrote it quite well!).edit_category_form
edit_link_category_form
add_tag_form
{$taxonomy} _add_form
. Add@deprecated 3.0.0 Use {$taxonomy} _add_form instead.
to their docblocks, immediately after the@since
tag (See PHPDoc Standards).@param
tags are incorrect, the data is being cast as an object, not an array, so we do not need the hash notation (which is a shame, because you wrote it quite well!).