Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#24433 closed defect (bug) (fixed)

Strict Standards Error with Video Post Format

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


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 8 years ago.

Download all attachments as: .zip

Change History (4)

8 years ago

#1 @nacin
8 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
8 years ago

  • Keywords needs-testing removed

#3 @nacin
8 years ago

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