Changeset 34984
- Timestamp:
- 10/09/2015 04:46:00 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r34866 r34984 848 848 // Set variables for storage, fix file filename for query strings. 849 849 preg_match( '/[^\?]+\.(jpe?g|jpe|gif|png)\b/i', $file, $matches ); 850 if ( ! $matches ) { 851 return new WP_Error( 'image_sideload_failed', __( 'Invalid image URL' ) ); 852 } 853 850 854 $file_array = array(); 851 855 $file_array['name'] = basename( $matches[0] );
Note: See TracChangeset
for help on using the changeset viewer.