File "class-render.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/wp-rocket/inc/classes/admin/deactivation/class-render.php
File
size: 762 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
namespace WP_Rocket\Admin\Deactivation;
use WP_Rocket\Abstract_Render;
defined( 'ABSPATH' ) || exit;
/**
* Handles rendering of deactivation intent form on plugins page
*
* @since 3.0
* @author Remy Perona
*/
class Render extends Abstract_Render {
/**
* Renders Deactivation intent form
*
* @since 3.0
* @author Remy Perona
*
* @return void
*/
public function render_form() {
$args = [
'deactivation_url' => wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . rawurlencode( 'wp-rocket/wp-rocket.php' ), 'deactivate-plugin_wp-rocket/wp-rocket.php' ),
];
echo $this->generate( 'form', $args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view.
}
}