383 | | $image_html = sprintf( |
384 | | '<img %ssrc="%s" alt="" />', |
385 | | empty( $compat['image_class'] ) ? '' : sprintf( 'class="%s" ', esc_attr( $compat['image_class'] ) ), |
386 | | $image |
387 | | ); |
388 | | if ( empty( $meta['url'] ) ) { |
| 383 | if ( false === strpos( $image, '<a ' ) ) { |
| 384 | $image_html = sprintf( |
| 385 | '<img %ssrc="%s" alt="" />', |
| 386 | empty( $compat['image_class'] ) ? '' : sprintf( 'class="%s" ', esc_attr( $compat['image_class'] ) ), |
| 387 | $image |
| 388 | ); |
| 389 | } else { |
| 390 | $image_html = $image; |
| 391 | } |
| 392 | |
| 393 | if ( empty( $meta['url'] ) || false !== strpos( $image, '<a ' ) ) { |