plete_deprecated', [ $this, 'ajax_posts_filter_autocomplete_deprecated' ] ); } /** * @deprecated 3.1.0 */ public function localize_settings() { Plugin::elementor()->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.1.0' ); return []; } protected function add_actions() { add_action( 'elementor/ajax/register_actions', [ $this, 'register_ajax_actions' ] ); add_action( 'elementor/controls/register', [ $this, 'register_controls' ] ); } /** * In WordPress 5.9 the 'who' query param was deprecated, this method * adding the new `capability` query param to the query and still support old versions of WordPress. * * @param $query * * @return mixed */ private function add_edit_capability_to_user_query( $query ) { // Capability queries were only introduced in WP 5.9. if ( version_compare( $GLOBALS['wp_version'], '5.9-alpha', '>=' ) ) { $query['capability'] = [ 'edit_posts' ]; } else { $query['who'] = 'authors'; } return $query; } }
Fatal error: Uncaught Error: Class '\ElementorPro\Modules\QueryControl\Module' not found in /home/sportuga/public_html/wp-content/plugins/elementor-pro/core/modules-manager.php:82 Stack trace: #0 /home/sportuga/public_html/wp-content/plugins/elementor-pro/plugin.php(375): ElementorPro\Core\Modules_Manager->__construct() #1 /home/sportuga/public_html/wp-includes/class-wp-hook.php(324): ElementorPro\Plugin->on_elementor_init('') #2 /home/sportuga/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 /home/sportuga/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /home/sportuga/public_html/wp-content/plugins/elementor/includes/plugin.php(658): do_action('elementor/init') #5 /home/sportuga/public_html/wp-includes/class-wp-hook.php(324): Elementor\Plugin->init('') #6 /home/sportuga/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /home/sportuga/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /home/sportuga/public_h in /home/sportuga/public_html/wp-content/plugins/elementor-pro/core/modules-manager.php on line 82