Press This fixes, props noel, see #10784
git-svn-id: http://svn.automattic.com/wordpress/trunk@11994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
627e7b3e6c
commit
1c4b720478
File diff suppressed because one or more lines are too long
|
@ -365,6 +365,9 @@ ul.categorychecklist li {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tags */
|
/* Tags */
|
||||||
|
.screen-reader-text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.tagsdiv .newtag {
|
.tagsdiv .newtag {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -192,13 +192,13 @@ if ( !empty($_GET['ajax']) ) {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function get_images_from_uri($uri) {
|
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)."'";
|
return "'".html_entity_decode($uri)."'";
|
||||||
$content = wp_remote_fopen($uri);
|
$content = wp_remote_fopen($uri);
|
||||||
if ( false === $content )
|
if ( false === $content )
|
||||||
return '';
|
return '';
|
||||||
$host = parse_url($uri);
|
$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);
|
preg_match_all($pattern, $content, $matches);
|
||||||
if ( empty($matches[0]) )
|
if ( empty($matches[0]) )
|
||||||
return '';
|
return '';
|
||||||
|
|
Loading…
Reference in New Issue