e notice. * * @since 3.8.0 * @access public * @return bool Should show? */ public function should_show_notice() { if ( wp_doing_ajax() ) { return false; } if ( is_network_admin() ) { return false; } if ( ! current_user_can( 'manage_options' ) ) { return false; } $current_screen = get_current_screen(); if ( empty( $current_screen ) ) { return false; } if ( ! $this->has_conflicting_plugins() ) { return false; } return true; } /** * Filter conflicting plugins. * It will appear at wp-admin/plugins.php?optimole_conflicts * * @since 3.8.0 * @access public * @param array $plugins List of plugins. * @return array */ public function filter_conflicting_plugins( $plugins ) { if ( ! isset( $_GET['optimole_conflicts'] ) ) { return $plugins; } $allowed_plugins = $this->get_conflicting_plugins( true ); $filtered_plugins = []; foreach ( $plugins as $plugin_file => $plugin_data ) { if ( in_array( $plugin_file, $allowed_plugins, true ) ) { $filtered_plugins[ $plugin_file ] = $plugin_data; } } return $filtered_plugins; } /** * Update the option value using AJAX * * @since 3.8.0 * @access public */ public function dismiss_notice() { if ( ! isset( $_POST['nonce'] ) ) { $response = [ 'success' => false, 'message' => 'Missing nonce or value.', ]; wp_send_json( $response ); } $nonce = sanitize_text_field( $_POST['nonce'] ); if ( ! wp_verify_nonce( $nonce, 'optml_dismiss_conflict_notice' ) ) { $response = [ 'success' => false, 'message' => 'Invalid nonce.', ]; wp_send_json( $response ); } $this->dismiss_conflicting_plugins(); $response = [ 'success' => true, ]; wp_send_json( $response ); } }
Fatal error: Uncaught Error: Class "Optml_Conflicting_Plugins" not found in /htdocs/wp-content/plugins/optimole-wp/inc/admin.php:55 Stack trace: #0 /htdocs/wp-content/plugins/optimole-wp/inc/main.php(113): Optml_Admin->__construct() #1 /htdocs/wp-content/plugins/optimole-wp/optimole-wp.php(107): Optml_Main::instance() #2 /htdocs/wp-content/plugins/optimole-wp/optimole-wp.php(112): optml() #3 /htdocs/wp-settings.php(560): include_once('/htdocs/wp-cont...') #4 /htdocs/wp-config.php(98): require_once('/htdocs/wp-sett...') #5 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #6 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #7 /htdocs/index.php(17): require('/htdocs/wp-blog...') #8 {main} thrown in /htdocs/wp-content/plugins/optimole-wp/inc/admin.php on line 55