PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | inc/3rd-party/formidable-pro/classes/Main.php +4 -4 1.10 → trunk View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2 namespace Imagify\ThirdParty\FormidablePro;
3 3
4 -defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
4 +use Imagify\Traits\InstanceGetterTrait;
5 5
6 6 /**
7 7 * Compat class for Formidable Forms Pro plugin.
8 8 * Each call to `new WP_Query()` made by Imagify must have a `'is_imagify' => true` argument.
@@ -10,9 +10,9 @@
10 10 * @since 1.6.13
11 11 * @author Grégory Viguier
12 12 */
13 13 class Main {
14 - use \Imagify\Traits\InstanceGetterTrait;
14 + use InstanceGetterTrait;
15 15
16 16 /**
17 17 * Class version.
18 18 *
@@ -33,10 +33,10 @@
33 33 * @since 1.6.13
34 34 * @author Grégory Viguier
35 35 */
36 36 public function init() {
37 - add_action( 'parse_query', array( $this, 'maybe_remove_media_library_filter' ) );
38 - add_action( 'posts_selection', array( $this, 'maybe_put_media_library_filter_back' ) );
37 + add_action( 'parse_query', [ $this, 'maybe_remove_media_library_filter' ] );
38 + add_action( 'posts_selection', [ $this, 'maybe_put_media_library_filter_back' ] );
39 39 }
40 40
41 41 /**
42 42 * Fires before the 'pre_get_posts' hook.