Changeset 2593011
- Timestamp:
- 09/03/2021 02:22:54 AM (5 years ago)
- Location:
- gravity-forms-entry-expiration
- Files:
-
- 6 edited
- 1 copied
-
tags/2.2 (copied) (copied from gravity-forms-entry-expiration/trunk)
-
tags/2.2/class-gf-entryexpiration.php (modified) (6 diffs)
-
tags/2.2/entryexpiration.php (modified) (1 diff)
-
tags/2.2/readme.txt (modified) (3 diffs)
-
trunk/class-gf-entryexpiration.php (modified) (6 diffs)
-
trunk/entryexpiration.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gravity-forms-entry-expiration/tags/2.2/class-gf-entryexpiration.php
r2354933 r2593011 616 616 617 617 // Prepare search critera. 618 $search_criter a = $this->get_search_criteria( $settings, $form );618 $search_criteria = $this->get_search_criteria( $settings, $form ); 619 619 620 620 // Prepare paging criteria. … … 625 625 626 626 // Get total entry count. 627 $found_entries = GFAPI::count_entries( $form['id'], $search_criter a );627 $found_entries = GFAPI::count_entries( $form['id'], $search_criteria ); 628 628 629 629 // Set entries processed count. … … 637 637 638 638 // Get entries. 639 $entries = GFAPI::get_entries( $form['id'], $search_criter a, null, $paging );639 $entries = GFAPI::get_entries( $form['id'], $search_criteria, null, $paging ); 640 640 641 641 // If no more entries were found, break. … … 685 685 686 686 // Initialize search criteria. 687 $search_criter a = array(688 'start_date' => date( 'Y-m-d H:i:s', 0 ),689 'end_date' => date( 'Y-m-d H:i:s', strtotime( '-' . $settings['deletionDate']['number'] . ' ' . $settings['deletionDate']['unit'] ) ),687 $search_criteria = array( 688 'start_date' => wp_date( 'Y-m-d H:i:s', 0 ), 689 'end_date' => wp_date( 'Y-m-d H:i:s', strtotime( '-' . $settings['deletionDate']['number'] . ' ' . $settings['deletionDate']['unit'] ) ), 690 690 'payment_status' => null, 691 691 ); … … 699 699 * @param array $form Form object. 700 700 */ 701 $search_criter a['end_date'] = gf_apply_filters( array( 'gf_entryexpiration_older_than', $form['id'] ), $search_critera['end_date'], $form );701 $search_criteria['end_date'] = gf_apply_filters( array( 'gf_entryexpiration_older_than', $form['id'] ), $search_criteria['end_date'], $form ); 702 702 703 703 /** … … 709 709 * @param array $form Form object. 710 710 */ 711 $search_criter a['payment_status'] = gf_apply_filters( array( 'gf_entryexpiration_payment', $form['id'] ), $search_critera['payment_status'], $form );712 713 return $search_criter a;711 $search_criteria['payment_status'] = gf_apply_filters( array( 'gf_entryexpiration_payment', $form['id'] ), $search_criteria['payment_status'], $form ); 712 713 return $search_criteria; 714 714 715 715 } -
gravity-forms-entry-expiration/tags/2.2/entryexpiration.php
r2354933 r2593011 4 4 Plugin URI: https://travislop.es/plugins/gravity-forms-entry-expiration/ 5 5 Description: Provides a simple way to remove old entries in Gravity Forms. 6 Version: 2. 16 Version: 2.2 7 7 Author: ForGravity 8 8 Author URI: https://forgravity.com 9 Text Domain: gravityformsentryexpiration 10 Domain Path: /languages 9 Text Domain: gravity-forms-entry-expiration 11 10 **/ 12 11 13 define( 'GF_ENTRYEXPIRATION_VERSION', '2. 1' );12 define( 'GF_ENTRYEXPIRATION_VERSION', '2.2' ); 14 13 15 14 // If Gravity Forms is loaded, bootstrap the Entry Expiration Add-On. -
gravity-forms-entry-expiration/tags/2.2/readme.txt
r2564691 r2593011 2 2 Contributors: forgravity, travislopes 3 3 Tags: gravity forms, entry, expiration 4 Requires at least: 3.9.24 Requires at least: 5.3.0 5 5 Tested up to: 5.8.0 6 6 Stable tag: 4.7.3 … … 24 24 == Installation == 25 25 = Requirements = 26 * WordPress version 3.9.2and later (tested at 5.8.0)26 * WordPress version 5.3.0 and later (tested at 5.8.0) 27 27 * Gravity Forms 1.8.17 and later 28 28 … … 35 35 36 36 == Changelog == 37 = Version 2.2 (2021-09-02) = 38 * Fixed entries not deleting on schedule when server and WordPress timezones do not match. 37 39 = Version 2.1 (2020-08-07) = 38 40 * Added capabilities. -
gravity-forms-entry-expiration/trunk/class-gf-entryexpiration.php
r2354933 r2593011 616 616 617 617 // Prepare search critera. 618 $search_criter a = $this->get_search_criteria( $settings, $form );618 $search_criteria = $this->get_search_criteria( $settings, $form ); 619 619 620 620 // Prepare paging criteria. … … 625 625 626 626 // Get total entry count. 627 $found_entries = GFAPI::count_entries( $form['id'], $search_criter a );627 $found_entries = GFAPI::count_entries( $form['id'], $search_criteria ); 628 628 629 629 // Set entries processed count. … … 637 637 638 638 // Get entries. 639 $entries = GFAPI::get_entries( $form['id'], $search_criter a, null, $paging );639 $entries = GFAPI::get_entries( $form['id'], $search_criteria, null, $paging ); 640 640 641 641 // If no more entries were found, break. … … 685 685 686 686 // Initialize search criteria. 687 $search_criter a = array(688 'start_date' => date( 'Y-m-d H:i:s', 0 ),689 'end_date' => date( 'Y-m-d H:i:s', strtotime( '-' . $settings['deletionDate']['number'] . ' ' . $settings['deletionDate']['unit'] ) ),687 $search_criteria = array( 688 'start_date' => wp_date( 'Y-m-d H:i:s', 0 ), 689 'end_date' => wp_date( 'Y-m-d H:i:s', strtotime( '-' . $settings['deletionDate']['number'] . ' ' . $settings['deletionDate']['unit'] ) ), 690 690 'payment_status' => null, 691 691 ); … … 699 699 * @param array $form Form object. 700 700 */ 701 $search_criter a['end_date'] = gf_apply_filters( array( 'gf_entryexpiration_older_than', $form['id'] ), $search_critera['end_date'], $form );701 $search_criteria['end_date'] = gf_apply_filters( array( 'gf_entryexpiration_older_than', $form['id'] ), $search_criteria['end_date'], $form ); 702 702 703 703 /** … … 709 709 * @param array $form Form object. 710 710 */ 711 $search_criter a['payment_status'] = gf_apply_filters( array( 'gf_entryexpiration_payment', $form['id'] ), $search_critera['payment_status'], $form );712 713 return $search_criter a;711 $search_criteria['payment_status'] = gf_apply_filters( array( 'gf_entryexpiration_payment', $form['id'] ), $search_criteria['payment_status'], $form ); 712 713 return $search_criteria; 714 714 715 715 } -
gravity-forms-entry-expiration/trunk/entryexpiration.php
r2354933 r2593011 4 4 Plugin URI: https://travislop.es/plugins/gravity-forms-entry-expiration/ 5 5 Description: Provides a simple way to remove old entries in Gravity Forms. 6 Version: 2. 16 Version: 2.2 7 7 Author: ForGravity 8 8 Author URI: https://forgravity.com 9 Text Domain: gravityformsentryexpiration 10 Domain Path: /languages 9 Text Domain: gravity-forms-entry-expiration 11 10 **/ 12 11 13 define( 'GF_ENTRYEXPIRATION_VERSION', '2. 1' );12 define( 'GF_ENTRYEXPIRATION_VERSION', '2.2' ); 14 13 15 14 // If Gravity Forms is loaded, bootstrap the Entry Expiration Add-On. -
gravity-forms-entry-expiration/trunk/readme.txt
r2564691 r2593011 2 2 Contributors: forgravity, travislopes 3 3 Tags: gravity forms, entry, expiration 4 Requires at least: 3.9.24 Requires at least: 5.3.0 5 5 Tested up to: 5.8.0 6 6 Stable tag: 4.7.3 … … 24 24 == Installation == 25 25 = Requirements = 26 * WordPress version 3.9.2and later (tested at 5.8.0)26 * WordPress version 5.3.0 and later (tested at 5.8.0) 27 27 * Gravity Forms 1.8.17 and later 28 28 … … 35 35 36 36 == Changelog == 37 = Version 2.2 (2021-09-02) = 38 * Fixed entries not deleting on schedule when server and WordPress timezones do not match. 37 39 = Version 2.1 (2020-08-07) = 38 40 * Added capabilities.
Note: See TracChangeset
for help on using the changeset viewer.