Opened 13 years ago
Closed 13 years ago
#25638 closed defect (bug) (fixed)
Hook Docs (25): wp-includes/default-widgets.php
| Reported by: | janw.oostendorp | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Widgets | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | docs |
Description
Add hook documentation to wp-includes/default-widgets.php
Attachments (6)
Change History (16)
#3
@
13 years ago
New Diff replaced
//duplicate_hook
to :
/** This action|filter is documented in /wp-includes/default-widgets.php (this file) */
Since all duplicates are the widget_title hook, which is defined in the same file.
#4
@
13 years ago
/** This action|filter is documented in /wp-includes/default-widgets.php (this file) */
FWIW, based on http://make.wordpress.org/core/handbook/inline-documentation-standards/php-documentation-standards/#4-1-duplicate-hooks
- you should also change
action|filtertoactionorfilterdepending on if it's anapply_filters()/do_action()hook you're documenting - file path shouldn't begin with /
- suffixing (this file) isn't needed, as it's primarily going to be used for automated parsing into the new documentation site when launched.
Based on http://make.wordpress.org/core/handbook/inline-documentation-standards/php-documentation-standards/#5-2-multi-line-comments you'll also want to wrap the descriptions in some of the longer blocks (such as for the widget_archives_dropdown_args filter)
Not intended to be a full review, just pointing out the few small things that I noticed.
#5
@
13 years ago
- Keywords needs-patch added; has-patch removed
- Summary Hooks Docs: wp-includes/default-widgets.php → Hook Docs (25): wp-includes/default-widgets.php
See comment:4
#8
@
13 years ago
- Owner changed from to
25638.4.diff contains formatting and language changes.
This needs a secondary review and a recommendation.
#9
@
13 years ago
- Keywords commit added
- Milestone Awaiting Review → 3.9
25638.3.diff should cover it.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
the documantation