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:
azaozz 2009-10-03 07:14:44 +00:00
parent 627e7b3e6c
commit 1c4b720478
3 changed files with 6 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -365,6 +365,9 @@ ul.categorychecklist li {
}
/* Tags */
.screen-reader-text {
display: none;
}
.tagsdiv .newtag {
margin-right: 5px;
}

View File

@ -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 '';