Opened 17 years ago
Closed 17 years ago
#5225 closed enhancement (fixed)
plugins.php Documentation for adding new PHPdoc tags
Reported by: | darkdragon | Owned by: | |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | Optimization | Keywords: | has-patch commit phpdoc documentation |
Focuses: | Cc: |
Description
Patch included adds @since information to all functions as well clean up the descriptions and add in more information.
Also adds in @package, @subpackage, and @global PHPdoc tags for helping tell what the functions use and where they belong.
Adds @internal tag with function_name() style as for the suggestion in wp-hackers thread.
Attachments (5)
Change History (16)
#1
@
17 years ago
When using an IDE, I configure the IDE to collapse all doc comments down to one line. This one line contains the first line, which is usually the description. That's pretty handy. With this patch the internal line shows up, which is not so handy. Can the description be the first line?
#2
@
17 years ago
Yeah, I'd admit having the @internal function_name() is fairly redundant when you collapse phpdoc comments. The whole purpose is for those who don't have that feature and it would need to be the first line or it becomes worthless. You would then have
/** * Short Description * * {@internal function_name() }} * @access public|private * * Long Description */
Which I don't know, it might not look so awful, but in any case it would also mean that the phpdocs that have the @access tag as the first line would also have to be moved down.
I'll think about this and submit a new patch which resolves your suggestion.
@
17 years ago
Fixes @since information based off of http://planetozh.com/projects/wordpress-functions-history/table_light.html table
#7
follow-up:
↓ 8
@
17 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Oops, the @since information is incorrect for some functions and changed short description to match Inline Documentation and the rest of Westi patches.
Thanks for committing the previous patch, it helped make this patch smaller.
#8
in reply to:
↑ 7
@
17 years ago
Replying to darkdragon:
Oops, the @since information is incorrect for some functions and changed short description to match Inline Documentation and the rest of Westi patches.
Thanks for committing the previous patch, it helped make this patch smaller.
The new patch does not apply at all for me.
Every Hunk is rejected.
Final time, corrects @uses, @link tags. Same as old patch.