Make WordPress Core

Opened 9 years ago

Closed 7 years ago

#41491 closed defect (bug) (fixed)

Add a DocBlock for WP_Comments_List_Table::floated_admin_avatar()

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

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 9 years ago.
41491.1.patch​ (762 bytes ) - added by ajayghaghretiya1 9 years ago.

Download all attachments as: .zip

Change History (13)

#1 @akbarhusen
9 years ago

i have attach the patch.

#2 @ayeshrajans
9 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
9 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
9 years ago

  • Component General → Comments
  • Focuses docs added
  • Keywords needs-refresh added
  • Summary document needs improvements → Documentation needs improvements

#5 @swissspidy
9 years ago

  • Description modified (diff)
  • Keywords needs-patch added; needs-refresh removed
  • Summary Documentation needs improvements → 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
9 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
9 years ago

  • Keywords has-patch added; needs-patch removed

#8 @netweb
9 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 9 years ago by netweb (previous) (diff)

#9 @SergeyBiryukov
9 years ago

  • Summary WP_Comments_List_Table documentation improvements → Add a DocBlock for WP_Comments_List_Table::floated_admin_avatar()

#10 @SergeyBiryukov
7 years ago

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

#11 @SergeyBiryukov
7 years ago

  • Resolution → fixed
  • Status reviewing → 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.