3.15.3
This commit is contained in:
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
if ( function_exists( 'print_link' ) ) :
|
||||
/**
|
||||
* Conflict with WP-Print: don't apply LazyLoad on print pages
|
||||
*
|
||||
* @since 2.6.8
|
||||
*/
|
||||
function rocket_deactivate_lazyload_on_print_pages() {
|
||||
global $wp_query;
|
||||
|
||||
if ( isset( $wp_query->query_vars['print'] ) ) {
|
||||
add_filter( 'do_rocket_lazyload', '__return_false' );
|
||||
}
|
||||
}
|
||||
add_action( 'wp', 'rocket_deactivate_lazyload_on_print_pages' );
|
||||
endif;
|
||||
Reference in New Issue
Block a user