Make WordPress Core

Changeset 29215


Ignore:
Timestamp:
07/17/2014 10:00:14 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Declare the variable before using it.

props danielbachhuber.
fixes #28932.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r29206 r29215  
    812812        // Set variables for storage, fix file filename for query strings.
    813813        preg_match( '/[^\?]+\.(jpe?g|jpe|gif|png)\b/i', $file, $matches );
     814        $file_array = array();
    814815        $file_array['name'] = basename( $matches[0] );
    815816
Note: See TracChangeset for help on using the changeset viewer.