/home/techb158/balacoffee.com/wp-content/plugins/wp-rocket/inc/deprecated
Edit: /home/techb158/balacoffee.com/wp-content/plugins/wp-rocket/inc/deprecated/3.10.php (4361B)
$notice['result'],
'message' => $notice['message'],
]
);
}
/**
* Purge OPCache content in Admin Bar
*
* @since 3.10.8 deprecated
* @since 2.7
*/
function do_admin_post_rocket_purge_opcache() { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals
_deprecated_function( __FUNCTION__ . '()', '3.10.8' );
if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( $_GET['_wpnonce'] ), 'rocket_purge_opcache' ) ) {
wp_nonce_ays( '' );
}
if ( ! current_user_can( 'rocket_purge_opcache' ) ) {
return;
}
$reset_opcache = rocket_reset_opcache();
if ( ! $reset_opcache ) {
$op_purge_result = [
'result' => 'error',
'message' => __( 'OPcache purge failed.', 'rocket' ),
];
} else {
$op_purge_result = [
'result' => 'success',
'message' => __( 'OPcache successfully purged', 'rocket' ),
];
}
set_transient( get_current_user_id() . '_opcache_purge_result', $op_purge_result );
wp_safe_redirect( esc_url_raw( wp_get_referer() ) );
die();
}