| @@ -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. |