Make WordPress Core

Opened 8 years ago

Closed 5 years ago

#41491 closed defect (bug) (fixed)

Add a DocBlock for WP_Comments_List_Table::floated_admin_avatar()

Reported by: akbarhusen's profile akbarhusen Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: Comments Keywords: needs-patch
Focuses: docs Cc:

Description (last modified by swissspidy)

The WP_Comments_List_Table has lots of properties and methods that lack proper inline documentation.

These should be updated according to the PHP documentation standards that can be found at https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/.

Attachments (2)

41491.patch (631 bytes) - added by akbarhusen 8 years ago.
41491.1.patch (762 bytes) - added by ajayghaghretiya1 8 years ago.

Download all attachments as: .zip

Change History (13)

@akbarhusen
8 years ago

#1 @akbarhusen
8 years ago

i have attach the patch.

#2 @ayeshrajans
8 years ago

Hi @akbarhusen - The patch refers to a @global variable that is not global, but only a function argument.

The parameter type is wrong as well.
It should be, @param string $name and @param int $comment_ID. The return type could be more meaningful too.

Also, I believe others will agree too, that one ticket to handle all the documentation issues in this class will help others to maintain it easily, instead of several small ones with vague titles.

Thanks.

#3 @Soean
8 years ago

Hello @akbarhusen
the access public annotations have been removed from the DocBlocks - see #41452 and handbook (https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/#1-functions-class-methods)

#4 @Soean
8 years ago

  • Component changed from General to Comments
  • Focuses docs added
  • Keywords needs-refresh added
  • Summary changed from document needs improvements to Documentation needs improvements

#5 @swissspidy
8 years ago

  • Description modified (diff)
  • Keywords needs-patch added; needs-refresh removed
  • Summary changed from Documentation needs improvements to WP_Comments_List_Table documentation improvements

In addition to that, please try to write more meaningful ticket titles than "Documentation needs improvement" and write at least a short description.

It's hard for us to garden tickets on trac when there are dozens of tickets with the same title and no description.

#6 @ayeshrajans
8 years ago

Couldn't agree more with @swissspidy. I guess these recent tickets are coming from a WordCamp or such event sprint. There are several of them I noticed recently.

#7 @ajayghaghretiya1
8 years ago

  • Keywords has-patch added; needs-patch removed

#8 @netweb
8 years ago

  • Keywords needs-patch added; has-patch removed

Please read the feedback already added to this ticket please

  • It is also deleting a blank line above the function comment when it should not

When updating the patch and adding it to the ticket here please explain the changes in the patch you have just uploaded and how it differs from any previous patch uploaded please :)

Last edited 8 years ago by netweb (previous) (diff)

#9 @SergeyBiryukov
8 years ago

  • Summary changed from WP_Comments_List_Table documentation improvements to Add a DocBlock for WP_Comments_List_Table::floated_admin_avatar()

#10 @SergeyBiryukov
5 years ago

  • Milestone changed from Awaiting Review to 5.5
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#11 @SergeyBiryukov
5 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 47507:

Docs: Add documentation for WP_Comments_List_Table::floated_admin_avatar().

Props akbarhusen, ayeshrajans, Soean, ajayghaghretiya1, netweb, SergeyBiryukov.
Fixes #41491.

Note: See TracTickets for help on using tickets.