PluginProbe
Polylang / 3.8.10
Polylang v3.8.10
3.8.10 3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 All 234 releases
polylang / src / integrations / aqua-resizer / aqua-resizer.php

aqua-resizer.php in Polylang 3.8.10, at src/integrations/aqua-resizer/aqua-resizer.php

33 lines 609 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Polylang
4 */
5
6 /**
7 * Manages the compatibility with Aqua Resizer when used in themes.
8 *
9 * @since 2.8
10 */
11 class PLL_Aqua_Resizer {
12 /**
13 * Setups filters.
14 *
15 * @since 2.8
16 */
17 public function init() {
18 add_filter( 'pll_home_url_black_list', array( $this, 'home_url_black_list' ) );
19 }
20
21 /**
22 * Avoids filtering the home url for the function aq_resize().
23 *
24 * @since 1.1.5
25 *
26 * @param array $arr Home url filter black list.
27 * @return array
28 */
29 public function home_url_black_list( $arr ) {
30 return array_merge( $arr, array( array( 'function' => 'aq_resize' ) ) );
31 }
32 }
33