WordPress.org

Make WordPress Core

Opened 15 months ago

Closed 14 months ago

Last modified 14 months ago

#26436 closed defect (bug) (fixed)

wp-includes/link-template.php: PhpDoc correction - edit_comment_link() returns void

Reported by: Corphi Owned by: nacin
Milestone: 3.9 Priority: normal
Severity: normal Version: 3.7.1
Component: Permalinks Keywords:
Focuses: docs Cc:

Description

Citing wp-includes/link-template.php (line 1003):
* @return string|null HTML content, if $echo is set to false.

should be:
* @return void (or dropped)

The prose should be adapted, too. $echo was probably a parameter to the function that has been removed.

Attachments (2)

drop-return.diff (697 bytes) - added by Corphi 15 months ago.
Variant dropping the return annotation.
return-void.diff (714 bytes) - added by Corphi 15 months ago.
variant using a return void annotation

Download all attachments as: .zip

Change History (4)

@Corphi15 months ago

Variant dropping the return annotation.

@Corphi15 months ago

variant using a return void annotation

comment:1 @nacin14 months ago

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

In 27026:

Docs fix: edit_comment_link() doesn't actually return anything.

props Corphi.
fixes #26436.

comment:2 @nacin14 months ago

  • Component changed from Inline Docs to Permalinks
  • Focuses docs added
  • Milestone changed from Awaiting Review to 3.9
Note: See TracTickets for help on using tickets.