WordPress.org

Make WordPress Core

#21880 closed defect (bug) (fixed)

PHPdoc typo in WP_Embed->shortcode

Reported by: DrewAPicture Owned by: nacin
Milestone: 3.5 Priority: normal
Severity: trivial Version:
Component: Inline Docs Keywords: has-patch commit
Focuses: Cc:

Description

@uses current_user_can() should be @uses author_can().

I'm not fully in agreement that author_can() is appropriate here but that's maybe a broader discussion for a future cycle.

Patch attached.

Attachments (1)

21880.diff (430 bytes) - added by DrewAPicture 22 months ago.

Download all attachments as: .zip

Change History (4)

DrewAPicture22 months ago

comment:2 nacin22 months ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.5

comment:3 nacin22 months ago

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

In [21830]:

oEmbed uses author_can(), not current_user_can(). props DrewAPicture, fixes #21880.

Note: See TracTickets for help on using tickets.