PluginProbe
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score / 3.6.3
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score v3.6.3
trunk 1.0 1.0.1 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1 2.1.1 2.1.2 2.2 2.2.1 All 69 releases
← All changes | includes/admin/dashboard.php +3 -7 trunk3.6.3 View file →
@@ -421,9 +421,8 @@
421 421 $sanitized_options['preload_request_interval'] = absint( $options['preload_request_interval'] );
422 422 $sanitized_options['preload_sitemap'] = sanitize_textarea_field( $options['preload_sitemap'] );
423 423 $sanitized_options['prefetch_dns'] = sanitize_textarea_field( $options['prefetch_dns'] );
424 424 $sanitized_options['preconnect_resource'] = sanitize_textarea_field( $options['preconnect_resource'] );
425 - $sanitized_options['enable_lcp_optimization'] = ! empty( $options['enable_lcp_optimization'] );
426 425 $sanitized_options['prefetch_links'] = ! empty( $options['prefetch_links'] );
427 426 $sanitized_options['db_cleanup_post_revisions'] = ! empty( $options['db_cleanup_post_revisions'] );
428 427 $sanitized_options['db_cleanup_auto_drafts'] = ! empty( $options['db_cleanup_auto_drafts'] );
429 428 $sanitized_options['db_cleanup_trashed_posts'] = ! empty( $options['db_cleanup_trashed_posts'] );
@@ -616,10 +615,9 @@
616 615 * @since 1.1
617 616 */
618 617 function purge_all_cache_action() {
619 618
620 - $nonce = isset( $_GET['_wpnonce'] ) ? sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) : '';
621 - if ( ! wp_verify_nonce( $nonce, 'powered_cache_purge_all_cache' ) ) {
619 + if ( ! wp_verify_nonce( $_GET['_wpnonce'], 'powered_cache_purge_all_cache' ) ) { // phpcs:ignore
622 620 wp_nonce_ays( '' );
623 621 }
624 622
625 623 if ( is_multisite() && ! current_user_can( 'manage_network' ) ) {
@@ -687,10 +685,9 @@
687 685 *
688 686 * @since 1.1
689 687 */
690 688 function download_rewrite_config() {
691 - $nonce = isset( $_GET['_wpnonce'] ) ? sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) : '';
692 - if ( ! wp_verify_nonce( $nonce, 'powered_cache_download_rewrite' ) ) {
689 + if ( ! wp_verify_nonce( $_GET['_wpnonce'], 'powered_cache_download_rewrite' ) ) { // phpcs:ignore
693 690 wp_nonce_ays( '' );
694 691 }
695 692
696 693 if ( ! can_control_all_settings() ) {
@@ -941,10 +938,9 @@
941 938 *
942 939 * @since 1.0
943 940 */
944 941 function deactivate_plugin() {
945 - $nonce = isset( $_GET['_wpnonce'] ) ? sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) : '';
946 - if ( ! wp_verify_nonce( $nonce, 'deactivate_plugin' ) ) {
942 + if ( ! wp_verify_nonce( $_GET['_wpnonce'], 'deactivate_plugin' ) ) { // phpcs:ignore
947 943 wp_nonce_ays( '' );
948 944 }
949 945
950 946 if ( ! current_user_can( 'activate_plugins' ) ) {