Skip to content

Commit

Permalink
Add ?nowrocket check to disable core lazyload method (#6378)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal authored Jan 17, 2024
1 parent 57c207d commit 4227d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Engine/Media/Lazyload/Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public function deactivate_lazyload_on_specific_posts() {
* @return bool
*/
public function maybe_disable_core_lazyload( $value, $tag_name ) {
if ( false === $value ) {
if ( false === $value || rocket_bypass() ) {
return $value;
}

Expand Down

0 comments on commit 4227d84

Please sign in to comment.