Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21880 closed defect (bug) (fixed)

PHPdoc typo in WP_Embed->shortcode

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


@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 12 years ago.

Download all attachments as: .zip

Change History (4)

12 years ago

#2 @nacin
12 years ago

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

#3 @nacin
12 years 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.