Changeset 3098884
- Timestamp:
- 06/06/2024 06:33:22 PM (22 months ago)
- Location:
- statify-blacklist
- Files:
-
- 6 edited
- 1 copied
-
tags/1.7.2 (copied) (copied from statify-blacklist/trunk)
-
tags/1.7.2/README.md (modified) (3 diffs)
-
tags/1.7.2/inc/class-statifyblacklist-settings.php (modified) (2 diffs)
-
tags/1.7.2/statify-blacklist.php (modified) (1 diff)
-
trunk/README.md (modified) (3 diffs)
-
trunk/inc/class-statifyblacklist-settings.php (modified) (2 diffs)
-
trunk/statify-blacklist.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
statify-blacklist/tags/1.7.2/README.md
r3057781 r3098884 4 4 * Tested up to: 6.5 5 5 * Requires PHP: 5.5 6 * Stable tag: 1.7. 16 * Stable tag: 1.7.2 7 7 * License: GPLv2 or later 8 8 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 89 89 ## Upgrade Notice ## 90 90 91 ### 1.7.2 ### 92 This is a bugfix release to restore the manual cleanup function that was broken since 1.7.0. 93 91 94 ### 1.7.1 ### 92 95 This is a service release with minor corrections. Recommended for all users. Tested up to 6.5. … … 96 99 97 100 98 ## Changelog ## 101 ## Changelog 102 103 ### 1.7.2 / 06.06.2024 ### 104 * Restore manual database cleanup functionality 99 105 100 106 ### 1.7.1 / 24.03.2024 ### -
statify-blacklist/tags/1.7.2/inc/class-statifyblacklist-settings.php
r3057781 r3098884 171 171 <div class="wrap"> 172 172 <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 ?> 173 194 174 195 <form id="statify-settings" method="post" action="options.php"> … … 179 200 ?> 180 201 <hr> 181 <input class="button-secondary" type="submit" name="cleanUp" 202 <input class="button-secondary" type="submit" name="cleanup" 203 formaction="" 182 204 value="<?php esc_html_e( 'CleanUp Database', 'statify-blacklist' ); ?>" 183 205 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 11 11 * Plugin URI: https://wordpress.org/plugins/statify-blacklist/ 12 12 * Description: Extension for the Statify plugin to add customizable filters. (formerly "Statify Blacklist) 13 * Version: 1.7. 113 * Version: 1.7.2 14 14 * Requires at least: 4.7 15 15 * Requires PHP: 5.5 -
statify-blacklist/trunk/README.md
r3057781 r3098884 4 4 * Tested up to: 6.5 5 5 * Requires PHP: 5.5 6 * Stable tag: 1.7. 16 * Stable tag: 1.7.2 7 7 * License: GPLv2 or later 8 8 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 89 89 ## Upgrade Notice ## 90 90 91 ### 1.7.2 ### 92 This is a bugfix release to restore the manual cleanup function that was broken since 1.7.0. 93 91 94 ### 1.7.1 ### 92 95 This is a service release with minor corrections. Recommended for all users. Tested up to 6.5. … … 96 99 97 100 98 ## Changelog ## 101 ## Changelog 102 103 ### 1.7.2 / 06.06.2024 ### 104 * Restore manual database cleanup functionality 99 105 100 106 ### 1.7.1 / 24.03.2024 ### -
statify-blacklist/trunk/inc/class-statifyblacklist-settings.php
r3057781 r3098884 171 171 <div class="wrap"> 172 172 <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 ?> 173 194 174 195 <form id="statify-settings" method="post" action="options.php"> … … 179 200 ?> 180 201 <hr> 181 <input class="button-secondary" type="submit" name="cleanUp" 202 <input class="button-secondary" type="submit" name="cleanup" 203 formaction="" 182 204 value="<?php esc_html_e( 'CleanUp Database', 'statify-blacklist' ); ?>" 183 205 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 11 11 * Plugin URI: https://wordpress.org/plugins/statify-blacklist/ 12 12 * Description: Extension for the Statify plugin to add customizable filters. (formerly "Statify Blacklist) 13 * Version: 1.7. 113 * Version: 1.7.2 14 14 * Requires at least: 4.7 15 15 * Requires PHP: 5.5
Note: See TracChangeset
for help on using the changeset viewer.