| @@ -1,12 +1,11 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Core\Logger; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Modules\System_Info\Reporters\Base; |
| 5 | -use Elementor\Utils; | |
| 6 | 5 | |
| 7 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | - exit; // Exit if accessed directly. | |
| 7 | + exit; // Exit if accessed directly | |
| 9 | 8 | } |
| 10 | 9 | |
| 11 | 10 | /** |
| 12 | 11 | * Elementor Log reporter. |
| @@ -55,11 +54,9 @@ | ||
| 55 | 54 | /** @var \Elementor\Core\Logger\Loggers\Db $logger */ |
| 56 | 55 | $logger = $manager->get_logger( 'db' ); |
| 57 | 56 | |
| 58 | 57 | if ( ! empty( $_GET[ self::CLEAR_LOG_ACTION ] ) ) { |
| 59 | - $nonce = Utils::get_super_global_value( $_GET, '_wpnonce' ); | |
| 60 | - | |
| 61 | - if ( ! wp_verify_nonce( $nonce, self::CLEAR_LOG_ACTION ) ) { | |
| 58 | + if ( empty( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], self::CLEAR_LOG_ACTION ) ) { | |
| 62 | 59 | wp_die( 'Invalid Nonce', 'Invalid Nonce', [ |
| 63 | 60 | 'back_link' => true, |
| 64 | 61 | ] ); |
| 65 | 62 | } |