Skip to content

Commit

Permalink
fix: anchor tags image replacement, conflicting with gallery plugins …
Browse files Browse the repository at this point in the history
…( NextGen )
  • Loading branch information
selul committed Feb 6, 2019
1 parent 8567f8b commit 824acdc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions inc/tag_replacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ public function process_image_tags( $content, $images = array() ) {
if ( $new_url === $tmp ) {
continue; // @codeCoverageIgnore
}
// replace the url in hrefs or links
if ( ! empty( $images['link_url'][ $index ] ) && $this->is_valid_mimetype_from_url( $images['link_url'][ $index ] ) ) {
$new_tag = preg_replace( '#(href=["|\'])' . $images['link_url'][ $index ] . '(["|\'])#i', '\1' . apply_filters( 'optml_content_url', $tmp, $optml_args ) . '\2', $tag, 1 );
}

$new_tag = str_replace(
[
Expand Down

0 comments on commit 824acdc

Please sign in to comment.