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:
Andrew Ozz 2009-10-03 07:14:44 +00:00
parent cd312efd44
commit dcdc3fdd1c
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 '';