Skip to content

Commit

Permalink
fix: disable image replacement when we are in the Beaver Builder edit…
Browse files Browse the repository at this point in the history
…ing mode
  • Loading branch information
selul committed Mar 22, 2019
1 parent a09d1fd commit 239442f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions inc/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ public function should_replace() {
return false; // @codeCoverageIgnore
}

if ( class_exists( 'FLBuilderModel', false ) ) {
$post_data = FLBuilderModel::get_post_data();
if ( isset( $_GET['fl_builder'] ) || isset( $post_data['fl_builder'] ) ) {
return false;
}
}

return true;
}

Expand Down Expand Up @@ -441,6 +448,7 @@ public function extract_image_urls_from_content( $content ) {
$content,
$urls
);

return $this->normalize_urls( $urls[0] );
}

Expand Down

0 comments on commit 239442f

Please sign in to comment.