WordPress.org

Make WordPress Core

Ticket #6813: press-this_7-14.patch

File press-this_7-14.patch, 529 bytes (added by noel, 7 years ago)

Fixes issue with Flickr and some other url variations

  • wp-admin/press-this.php

     
    183183 
    184184                $host = parse_url($uri); 
    185185 
    186                 $pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif))(\2)([^>\/]*)\/*>/is'; 
     186                $pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif)[^<>\'\"]*)(\2)([^>\/]*)\/*>/is'; 
    187187                preg_match_all($pattern, $content, $matches); 
    188188 
    189189                if ( empty($matches[1]) ) return '';