parent
a2725b1f67
commit
5d7939dbb7
|
@ -404,7 +404,7 @@ function oss_setting_content_style($content)
|
|||
if (!empty($images) && isset($images[1])) {
|
||||
$images[1] = array_unique($images[1]);
|
||||
foreach ($images[1] as $item) {
|
||||
if(strpos($item, $option['upload_url_path']) !== false){
|
||||
if((strpos($item, $option['upload_url_path']) !== false) && (strpos($item, $option['style']) === false)){
|
||||
$content = str_replace($item, $item . $option['style'], $content);
|
||||
}
|
||||
}
|
||||
|
@ -422,7 +422,7 @@ function oss_setting_post_thumbnail_style( $html, $post_id, $post_image_id )
|
|||
if (!empty($images) && isset($images[1])) {
|
||||
$images[1] = array_unique($images[1]);
|
||||
foreach ($images[1] as $item) {
|
||||
if(strpos($item, $option['upload_url_path']) !== false){
|
||||
if((strpos($item, $option['upload_url_path']) !== false) && (strpos($item, $option['style']) === false)){
|
||||
$html = str_replace($item, $item . $option['style'], $html);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue