mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
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 */
|
||||
.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