Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#24433 closed defect (bug) (fixed)

Strict Standards Error with Video Post Format

Reported by: sunnyratilal's profile sunnyratilal Owned by: nacin's profile nacin
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Post Formats Keywords: has-patch
Focuses: Cc:

Description

When creating a new post with the video post format and outputting it using the_post_format_video(), above the video, I'm presented with the following error message: Strict Standards: Only variables should be assigned by reference in /wp-includes/media.php on line 2057

The error is fixed by get_post() is not called by reference so it's just called by get_post() instead of &get_post().

Attachments (1)

24433.diff (335 bytes) - added by sunnyratilal 12 years ago.

Download all attachments as: .zip

Change History (4)

@sunnyratilal
12 years ago

#1 @nacin
12 years ago

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

In 24376:

No need for a pass-by-reference here. props sunnyratilal, fixes #24433.

#2 @sunnyratilal
12 years ago

  • Keywords needs-testing removed

#3 @nacin
12 years ago

  • Milestone changed from Awaiting Review to 3.6
Note: See TracTickets for help on using tickets.