Plugin Directory

Changeset 3098884


Ignore:
Timestamp:
06/06/2024 06:33:22 PM (22 months ago)
Author:
stklcode
Message:

Update to version 1.7.2 from GitHub

Location:
statify-blacklist
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • statify-blacklist/tags/1.7.2/README.md

    r3057781 r3098884  
    44* Tested up to:      6.5
    55* Requires PHP:      5.5
    6 * Stable tag:        1.7.1
     6* Stable tag:        1.7.2
    77* License:           GPLv2 or later
    88* License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    8989## Upgrade Notice ##
    9090
     91### 1.7.2 ###
     92This is a bugfix release to restore the manual cleanup function that was broken since 1.7.0.
     93
    9194### 1.7.1 ###
    9295This is a service release with minor corrections. Recommended for all users. Tested up to 6.5.
     
    9699
    97100
    98 ## Changelog ##
     101## Changelog
     102
     103### 1.7.2 / 06.06.2024 ###
     104* Restore manual database cleanup functionality
    99105
    100106### 1.7.1 / 24.03.2024 ###
  • statify-blacklist/tags/1.7.2/inc/class-statifyblacklist-settings.php

    r3057781 r3098884  
    171171        <div class="wrap">
    172172            <h1><?php esc_html_e( 'Statify Filter', 'statify-blacklist' ); ?></h1>
     173            <?php
     174            if ( isset( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD'] && ! empty( $_POST['cleanup'] ) ) {
     175                // Database cleanup requested.
     176                if ( isset( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( sanitize_key( $_REQUEST['_wpnonce'] ), 'statify-blacklist-options' ) ) {
     177                    // Nonce verification successful, proceed with cleanup.
     178                    StatifyBlacklist_Admin::cleanup_database();
     179                    ?>
     180                    <div class="notice notice-success is-dismissible">
     181                        <p><?php esc_html_e( 'Database cleanup successful', 'statify-blacklist' ); ?></p>
     182                    </div>
     183                    <?php
     184                } else {
     185                    // Nonce verification failed.
     186                    ?>
     187                    <div class="notice notice-error is-dismissible">
     188                        <p><?php esc_html_e( 'Database cleanup request failed', 'statify-blacklist' ); ?></p>
     189                    </div>
     190                    <?php
     191                }
     192            }
     193            ?>
    173194
    174195            <form id="statify-settings" method="post" action="options.php">
     
    179200                ?>
    180201                <hr>
    181                 <input class="button-secondary" type="submit" name="cleanUp"
     202                <input class="button-secondary" type="submit" name="cleanup"
     203                    formaction=""
    182204                    value="<?php esc_html_e( 'CleanUp Database', 'statify-blacklist' ); ?>"
    183205                    onclick="return confirm('<?php echo esc_js( __( 'Do you really want to apply filters to database? This cannot be undone.', 'statify-blacklist' ) ); ?>');">
  • statify-blacklist/tags/1.7.2/statify-blacklist.php

    r3057781 r3098884  
    1111 * Plugin URI:        https://wordpress.org/plugins/statify-blacklist/
    1212 * Description:       Extension for the Statify plugin to add customizable filters. (formerly "Statify Blacklist)
    13  * Version:           1.7.1
     13 * Version:           1.7.2
    1414 * Requires at least: 4.7
    1515 * Requires PHP:      5.5
  • statify-blacklist/trunk/README.md

    r3057781 r3098884  
    44* Tested up to:      6.5
    55* Requires PHP:      5.5
    6 * Stable tag:        1.7.1
     6* Stable tag:        1.7.2
    77* License:           GPLv2 or later
    88* License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    8989## Upgrade Notice ##
    9090
     91### 1.7.2 ###
     92This is a bugfix release to restore the manual cleanup function that was broken since 1.7.0.
     93
    9194### 1.7.1 ###
    9295This is a service release with minor corrections. Recommended for all users. Tested up to 6.5.
     
    9699
    97100
    98 ## Changelog ##
     101## Changelog
     102
     103### 1.7.2 / 06.06.2024 ###
     104* Restore manual database cleanup functionality
    99105
    100106### 1.7.1 / 24.03.2024 ###
  • statify-blacklist/trunk/inc/class-statifyblacklist-settings.php

    r3057781 r3098884  
    171171        <div class="wrap">
    172172            <h1><?php esc_html_e( 'Statify Filter', 'statify-blacklist' ); ?></h1>
     173            <?php
     174            if ( isset( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD'] && ! empty( $_POST['cleanup'] ) ) {
     175                // Database cleanup requested.
     176                if ( isset( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( sanitize_key( $_REQUEST['_wpnonce'] ), 'statify-blacklist-options' ) ) {
     177                    // Nonce verification successful, proceed with cleanup.
     178                    StatifyBlacklist_Admin::cleanup_database();
     179                    ?>
     180                    <div class="notice notice-success is-dismissible">
     181                        <p><?php esc_html_e( 'Database cleanup successful', 'statify-blacklist' ); ?></p>
     182                    </div>
     183                    <?php
     184                } else {
     185                    // Nonce verification failed.
     186                    ?>
     187                    <div class="notice notice-error is-dismissible">
     188                        <p><?php esc_html_e( 'Database cleanup request failed', 'statify-blacklist' ); ?></p>
     189                    </div>
     190                    <?php
     191                }
     192            }
     193            ?>
    173194
    174195            <form id="statify-settings" method="post" action="options.php">
     
    179200                ?>
    180201                <hr>
    181                 <input class="button-secondary" type="submit" name="cleanUp"
     202                <input class="button-secondary" type="submit" name="cleanup"
     203                    formaction=""
    182204                    value="<?php esc_html_e( 'CleanUp Database', 'statify-blacklist' ); ?>"
    183205                    onclick="return confirm('<?php echo esc_js( __( 'Do you really want to apply filters to database? This cannot be undone.', 'statify-blacklist' ) ); ?>');">
  • statify-blacklist/trunk/statify-blacklist.php

    r3057781 r3098884  
    1111 * Plugin URI:        https://wordpress.org/plugins/statify-blacklist/
    1212 * Description:       Extension for the Statify plugin to add customizable filters. (formerly "Statify Blacklist)
    13  * Version:           1.7.1
     13 * Version:           1.7.2
    1414 * Requires at least: 4.7
    1515 * Requires PHP:      5.5
Note: See TracChangeset for help on using the changeset viewer.