Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/www/wp-content/plugins/wp-rocket/inc/Engine/Admin/Settings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/www/wp-content/plugins/wp-rocket/inc/Engine/Admin/Settings/DataClearingTrait.php
<?php

namespace WP_Rocket\Engine\Admin\Settings;

trait DataClearingTrait {

	/**
	 * Truncate data table when action is taken
	 *
	 * @param array  $data An array containing the status and message.
	 * @param string $transient The transient key to set after cleaning.
	 *
	 * @return void
	 */
	protected function clean_data( $data, string $transient ): void {
		if ( ! current_user_can( 'rocket_manage_options' ) ) {
			return;
		}

		if (
			empty( $data )
			||
			'die' === $data['status']
		) {
			wp_safe_redirect( esc_url_raw( wp_get_referer() ) );
			rocket_get_constant( 'WP_ROCKET_IS_TESTING', false ) ? wp_die() : exit;
		}

		if ( 'error' === $data['status'] ) {
			wp_safe_redirect( esc_url_raw( wp_get_referer() ) );
			rocket_get_constant( 'WP_ROCKET_IS_TESTING', false ) ? wp_die() : exit;
		}

		rocket_clean_domain();

		rocket_dismiss_box( 'rocket_warning_plugin_modification' );

		set_transient(
			$transient,
			$data
		);

		wp_safe_redirect( esc_url_raw( wp_get_referer() ) );
		rocket_get_constant( 'WP_ROCKET_IS_TESTING', false ) ? wp_die() : exit;
	}
}

Spamworldpro Mini