WordPress.org

Make WordPress Core

Opened 11 months ago

Closed 11 months ago

Last modified 11 months 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:

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 11 months ago.

Download all attachments as: .zip

Change History (4)

sunnyratilal11 months ago

comment:1 nacin11 months 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.

comment:2 sunnyratilal11 months ago

  • Keywords needs-testing removed

comment:3 nacin11 months ago

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