Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#26436 closed defect (bug) (fixed)

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

Reported by: corphi's profile Corphi Owned by: nacin's profile 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 11 years ago.
Variant dropping the return annotation.
return-void.diff (714 bytes) - added by Corphi 11 years ago.
variant using a return void annotation

Download all attachments as: .zip

Change History (4)

@Corphi
11 years ago

Variant dropping the return annotation.

@Corphi
11 years ago

variant using a return void annotation

#1 @nacin
11 years 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.

#2 @nacin
11 years 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.