Press This fixes, props noel, see #10784
git-svn-id: https://develop.svn.wordpress.org/trunk@11994 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cd312efd44
commit
dcdc3fdd1c
File diff suppressed because one or more lines are too long
@ -365,6 +365,9 @@ ul.categorychecklist li {
|
||||
}
|
||||
|
||||
/* Tags */
|
||||
.screen-reader-text {
|
||||
display: none;
|
||||
}
|
||||
.tagsdiv .newtag {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
@ -192,13 +192,13 @@ if ( !empty($_GET['ajax']) ) {
|
||||
* @return string
|
||||
*/
|
||||
function get_images_from_uri($uri) {
|
||||
if( preg_match('/\.(jpg|jpe|jpeg|png|gif)/', $uri) && !strpos($uri,'blogger.com') )
|
||||
if( preg_match('/\.(jpg|jpe|jpeg|png|gif)$/', $uri) && !strpos($uri,'blogger.com') )
|
||||
return "'".html_entity_decode($uri)."'";
|
||||
$content = wp_remote_fopen($uri);
|
||||
if ( false === $content )
|
||||
return '';
|
||||
$host = parse_url($uri);
|
||||
$pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif)[^<>\'\"]*)(\2)([^>\/]*)\/*>/is';
|
||||
$pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif)[^<>\'\"]*)(\2)([^>]*)\/*>/is';
|
||||
preg_match_all($pattern, $content, $matches);
|
||||
if ( empty($matches[0]) )
|
||||
return '';
|
||||
|
Loading…
Reference in New Issue
Block a user