Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 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 2 years ago.

Download all attachments as: .zip

Change History (4)

@sunnyratilal2 years ago

comment:1 @nacin2 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.

comment:2 @sunnyratilal2 years ago

  • Keywords needs-testing removed

comment:3 @nacin2 years ago

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