Skip to content

Commit 52267f5

Browse files
authored
Merge pull request #803 from Codeinwp/fix/offload-post-preview
fix: preview images not working with offload enabled [closes #801]
2 parents c5fa223 + a02a284 commit 52267f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inc/manager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ public function should_replace() {
266266
if ( ( is_admin() && ! self::is_ajax_request() ) || ! $this->settings->is_connected() || ! $this->settings->is_enabled() ) {
267267
return false; // @codeCoverageIgnore
268268
}
269-
if ( array_key_exists( 'preview', $_GET ) && ! empty( $_GET['preview'] ) ) {
269+
270+
if ( array_key_exists( 'preview', $_GET ) && ! empty( $_GET['preview'] ) && ! $this->settings->is_offload_enabled() ) {
270271
return false; // @codeCoverageIgnore
271272
}
272273

0 commit comments

Comments
 (0)