Opened 11 years ago
Closed 11 years ago
#25283 closed enhancement (fixed)
Clean up Inline Docs for revisions
Reported by: | adamsilverstein | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Inline Docs | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Not much off here, mostly spacing, but thought I would take a sweep to refine my PHPDoc familiarity.
Attachments (3)
Change History (20)
#4
follow-up:
↓ 6
@
11 years ago
Last line in wp-admin-revisions.diff:
* @param int to Optional, requirered if revision missing. The revision to compare to.
Should be:
* @param int to Optional, required if revision missing. The revision to compare to.
(typo fix)
#6
in reply to:
↑ 4
@
11 years ago
Replying to kpdesign:
Last line in wp-admin-revisions.diff:
* @param int to Optional, requirered if revision missing. The revision to compare to.Should be:
* @param int to Optional, required if revision missing. The revision to compare to.(typo fix)
thanks!
#7
in reply to:
↑ 3
@
11 years ago
Replying to DrewAPicture:
Both patches look good. The only thing is there should be no period on the short description for the file header in wp-admin/revision.php
ok, got it.
#9
@
11 years ago
Should _wp_post_revision_field_$field filter be documented as well?
#10
follow-up:
↓ 13
@
11 years ago
We talked a little bit about "private" filters when writing the inline docs standards, though it was never really clear what the significance of prepending an underscore to a filter hook was actually supposed to be.
Short answer? I'd say yes, unless somebody 'in the know' provides a compelling argument not to.
#13
in reply to:
↑ 10
@
11 years ago
Replying to DrewAPicture:
We talked a little bit about "private" filters when writing the inline docs standards, though it was never really clear what the significance of prepending an underscore to a filter hook was actually supposed to be.
Private filters should be documented with, at the very least, @access private
, the same way documented filters should be documented with @deprecated
.
That said: I don't think this hook is private. I think it just mimics the name of the related function _wp_post_revision_fields()
.
#14
follow-up:
↓ 15
@
11 years ago
@adamsilverstein: Mind taking a gander at 25283.diff to see if that's accurate or if it needs clarification?
#15
in reply to:
↑ 14
@
11 years ago
Replying to DrewAPicture:
@adamsilverstein: Mind taking a gander at 25283.diff to see if that's accurate or if it needs clarification?
I think this looks good.
now that i'm looking i see more filters in here that need documenting like _wp_post_revision_fields() and wp_save_post_revision_check_for_changes - I will (try my best to) add docs for those and other in this file and post back here.
Both patches look good. The only thing is there should be no period on the short description for the file header in wp-admin/revision.php