@@ -259,11 +259,11 @@ |
||
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | - if ( preg_match_all('/url\(([\s])?([\"|\'])?(.*?)([\"|\'])?([\s])?\)/i', $content, $matches ) ) { |
|
| 263 | - foreach ( $matches[3] as $image_src ) { |
|
| 264 | - $content = str_replace( $image_src, apply_filters( 'wp_get_attachment_url', $image_src, null ), $content ); |
|
| 265 | - } |
|
| 266 | - } |
|
| 262 | + if ( preg_match_all('/url\(([\s])?([\"|\'])?(.*?)([\"|\'])?([\s])?\)/i', $content, $matches ) ) { |
|
| 263 | + foreach ( $matches[3] as $image_src ) { |
|
| 264 | + $content = str_replace( $image_src, apply_filters( 'wp_get_attachment_url', $image_src, null ), $content ); |
|
| 265 | + } |
|
| 266 | + } |
|
| 267 | 267 | } |
| 268 | 268 | return $content; |
| 269 | 269 | } |