WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#32865 closed defect (bug) (fixed)

Replace @returns with @return

Reported by: kraftbj Owned by: SergeyBiryukov
Milestone: 4.3 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: docs Cc:

Description

PHP docblocks should use @return and not @returns as done with JS per http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.return.pkg.html

There are a few instances of this, mostly in Press This.

Patch incoming.

Attachments (1)

32865.patch (2.7 KB) - added by kraftbj 6 years ago.

Download all attachments as: .zip

Change History (3)

@kraftbj
6 years ago

#1 @SergeyBiryukov
6 years ago

  • Milestone changed from Awaiting Review to 4.3

#2 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 33052:

Replace @returns with @return in PHP docblocks.

props kraftbj.
fixes #32865.

Note: See TracTickets for help on using tickets.