Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/wp-rocket/inc/3rd-party/plugins/wp-print.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
3
+
defined( 'ABSPATH' ) || exit;
4
+
5
+
if ( function_exists( 'print_link' ) ) :
6
+
/**
7
+
* Conflict with WP-Print: don't apply LazyLoad on print pages
8
+
*
9
+
* @since 2.6.8
10
+
*/
11
+
function rocket_deactivate_lazyload_on_print_pages() {
12
+
global $wp_query;
13
+
14
+
if ( isset( $wp_query->query_vars['print'] ) ) {
15
+
add_filter( 'do_rocket_lazyload', '__return_false' );
16
+
}
17
+
}
18
+
add_action( 'wp', 'rocket_deactivate_lazyload_on_print_pages' );
19
+
endif;
20
+