Skip to content

Commit

Permalink
fix: improve compatibility with master slider
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoreMihai authored and selul committed Nov 19, 2019
1 parent beb8c27 commit cf57717
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions inc/compatibilities/master_slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ function ( $all_watchers ) {
return $all_watchers;
}
);
add_filter(
'optml_dont_replace_url',
function ( $old, $url = null ) {
if ( strpos( $url, 'blank.gif' ) !== false ) {
return true;
}
return $old;
},
10,
2
);

}
}

0 comments on commit cf57717

Please sign in to comment.