Changeset 3040301
- Timestamp:
- 02/23/2024 03:07:44 PM (2 years ago)
- Location:
- gravitywp-count
- Files:
-
- 4 added
- 2 edited
-
tags/0.9.10 (added)
-
tags/0.9.10/LICENSE (added)
-
tags/0.9.10/gravitywp-count.php (added)
-
tags/0.9.10/readme.txt (added)
-
trunk/gravitywp-count.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gravitywp-count/trunk/gravitywp-count.php
r2848034 r3040301 5 5 * Description: Adds a shortcode to count, filter and display Gravity Forms entries or the total of a number field in multiple entries. 6 6 * Author: GravityWP 7 * Version: 0.9. 97 * Version: 0.9.10 8 8 * Author URI: https://gravitywp.com/add-on/count/ 9 9 * License: GPL2 … … 237 237 } 238 238 239 /** Replace greather_than and less_than operators with < or > */ 240 if ( isset ( $search_criteria ) && array_key_exists( 'field_filters', $search_criteria ) ) { 241 foreach( $search_criteria['field_filters'] as $index => $filter ) { 242 if ( is_array( $filter ) ) { 243 if( array_key_exists( 'operator', $filter ) && $filter['operator'] === 'greater_than' ) { 244 $search_criteria['field_filters'][$index]['operator'] = '>'; 245 } 246 if( array_key_exists( 'operator', $filter ) && $filter['operator'] === 'less_than' ) { 247 $search_criteria['field_filters'][$index]['operator'] = '<'; 248 } 249 } 250 } 251 } 252 239 253 $formids = explode( ',', $formids ); 240 254 $countentries = GFAPI::count_entries( $formids, $search_criteria ); -
gravitywp-count/trunk/readme.txt
r3008594 r3040301 4 4 Tags: gravity forms, number field, count, form, forms, gravity form 5 5 Requires at least: 3.0.1 6 Tested up to: 6. 47 Stable tag: 0.9. 96 Tested up to: 6.3 7 Stable tag: 0.9.10 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 32 32 33 33 == Changelog == 34 35 = 0.9.10 = 36 * Fix for greater_than and less_than operators not working. 34 37 35 38 = 0.9.9 =
Note: See TracChangeset
for help on using the changeset viewer.