|
@@ -635,7 +635,8 @@ function replace_pic($content){
|
|
$content = apply_filters( 'the_content', $content);
|
|
$content = apply_filters( 'the_content', $content);
|
|
$content = str_replace( ']]>', ']]>', $content );
|
|
$content = str_replace( ']]>', ']]>', $content );
|
|
|
|
|
|
- $pattern_1 = "/(http|https)\:\/\/\S+(googleusercontent|ggpht)\S+\/s(?<size>\d+)[\-c]*?\/\S+\.(jpg|png|gif)/i";
|
|
|
|
|
|
+ //$pattern_1 = "/(http|https)\:\/\/\S+(googleusercontent|ggpht)\S+\/s(?<size>\d+)[\-c]*?\/\S+\.(jpg|png|gif)/i";
|
|
|
|
+ $pattern_1 = "/(http|https)\:\/\/\S+(googleusercontent|ggpht)\S+\/s(?<size>\d+)[\-\S+]*?\/\S+\.(jpg|png|gif)/i";
|
|
$pattern_2 = "/(http|https)\:\/\/\S+(googleusercontent|ggpht)\S+\.(jpg|png|gif)\?imgmax=(?<size>\d+)/i";
|
|
$pattern_2 = "/(http|https)\:\/\/\S+(googleusercontent|ggpht)\S+\.(jpg|png|gif)\?imgmax=(?<size>\d+)/i";
|
|
|
|
|
|
$content = preg_replace_callback($pattern_1, 'replace', $content);
|
|
$content = preg_replace_callback($pattern_1, 'replace', $content);
|