Make WordPress Core

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)

25638.diff​ (10.8 KB ) - added by janw.oostendorp 13 years ago.
the documantation
25638.2.diff​ (12.1 KB ) - added by janw.oostendorp 13 years ago.
updated hooks
25638v3.diff​ (12.0 KB ) - added by janw.oostendorp 13 years ago.
updated hooks
25638v3.2.diff​ (12.0 KB ) - added by janw.oostendorp 13 years ago.
updated hooks
25638.4.diff​ (13.2 KB ) - added by kpdesign 13 years ago.
Fourth pass
25638.3.diff​ (13.8 KB ) - added by DrewAPicture 13 years ago.
final pass

Download all attachments as: .zip

Change History (16)

@janw.oostendorp
13 years ago

the documantation

#1 @kpdesign
13 years ago

  • Keywords has-patch added

#2 @DrewAPicture
13 years ago

  • Owner set to kpdesign
  • Status new → reviewing

#3 @janw.oostendorp
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 @dd32
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|filter to action or filter depending on if it's an apply_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 @DrewAPicture
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

#6 @kpdesign
13 years ago

  • Keywords has-patch added; needs-patch removed

#7 @jeremyfelt
13 years ago

  • Component Inline Docs → Widgets
  • Focuses docs added

@kpdesign
13 years ago

Fourth pass

#8 @kpdesign
13 years ago

  • Owner changed from kpdesign to DrewAPicture

25638.4.diff​ contains formatting and language changes.

This needs a secondary review and a recommendation.

#9 @DrewAPicture
13 years ago

  • Keywords commit added
  • Milestone Awaiting Review → 3.9

25638.3.diff​ should cover it.

#10 @DrewAPicture
13 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 27697:

Inline documentation for hooks in wp-includes/default-widgets.php.

Props janw.oostendorp and kpdesign.
Fixes #25638.

Note: See TracTickets for help on using tickets.