Changeset 21219 for trunk/wp-admin/press-this.php
- Timestamp:
- 07/05/2012 08:51:55 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/press-this.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r21204 r21219 173 173 function get_images_from_uri($uri) { 174 174 $uri = preg_replace('/\/#.+?$/','', $uri); 175 if ( preg_match( '/\.(jpg|jpe|jpeg|png|gif)$/', $uri) && !strpos($uri,'blogger.com') )175 if ( preg_match( '/\.(jpe?g|jpe|gif|png)\b/i', $uri ) && !strpos( $uri, 'blogger.com' ) ) 176 176 return "'" . esc_attr( html_entity_decode($uri) ) . "'"; 177 177 $content = wp_remote_fopen($uri);
Note: See TracChangeset
for help on using the changeset viewer.