WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#44433 closed defect (bug) (fixed)

Error in code comment for delete_metadata()

Reported by: cliffpaulick Owned by: SergeyBiryukov
Milestone: 5.1 Priority: normal
Severity: trivial Version:
Component: Text Changes Keywords: has-patch commit
Focuses: docs Cc:

Description

Missing tick causes documentation error. Screenshot of https://developer.wordpress.org/reference/functions/delete_metadata/ at time of creating this ticket: https://cl.ly/3d3Y2x0s1W3a

Attachments (1)

44433.patch (1000 bytes) - added by dilipbheda 3 years ago.

Download all attachments as: .zip

Change History (7)

#1 @netweb
3 years ago

  • Keywords good-first-bug added
  • Milestone changed from Awaiting Review to 5.0

Looks like null is missing the closing backtick here https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/meta.php#L299

@dilipbheda
3 years ago

#2 @dilipbheda
3 years ago

  • Keywords has-patch added; needs-patch removed

Updated patch for this.

#3 @netweb
3 years ago

  • Keywords commit added; good-first-bug removed

#4 @netweb
3 years ago

#meta3677 was marked as a duplicate

#5 @SergeyBiryukov
3 years ago

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

In 43385:

Docs: Add missing backtick in delete_metadata() DocBlock.

Props dilipbheda, cliffpaulick.
Fixes #44433.

#6 @johnbillion
3 years ago

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.