Changeset 2860478
- Timestamp:
- 02/05/2023 06:28:24 PM (3 years ago)
- Location:
- stafflist/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
stafflist.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stafflist/trunk/readme.txt
r2847574 r2860478 103 103 104 104 == Changelog == 105 = 3.2.1 = 106 * Fixed issue with sorts (1:firstname,2:lastname,3:phone,4:email,5:department,...) discovered by @mskwarwsd (thank you); 107 105 108 = 3.2.0 = 106 109 * Fixed bug with >PHP7.4:parse_str() for Custom Labels & Messages, discovered by @eddieatwp (thank you); -
stafflist/trunk/stafflist.php
r2847574 r2860478 4 4 Plugin URI: http://wordpress.org/plugins/stafflist/ 5 5 Description: A super simplified staff directory tool 6 Version: 3.2. 06 Version: 3.2.1 7 7 Author: era404 8 8 Author URI: http://www.era404.com … … 298 298 echo "<thead id='stafflisthead'><tr> 299 299 <th><a href='{$stafflisturl}&s=last' title='Sort by Last Name A-Z' class='sort_a ".($s=='last'?'selected':'')."'><span>Ascending</span></a> 300 <a title='For initial sort by Last Name, use "sort= 1" in your shortcode.'>Last Name</a>300 <a title='For initial sort by Last Name, use "sort=2" in your shortcode.'>Last Name</a> 301 301 <a href='{$stafflisturl}&s=last-' title='Sort by Last Name Z-A' class='sort_d ".($s=='last-'?'selected':'')."'><span>Descending</span></a> 302 302 </th><th> </th> 303 303 <th><a href='{$stafflisturl}&s=first' title='Sort by First Name Ascending' class='sort_a ".($s=='first'?'selected':'')."'><span>Ascending</span></a> 304 <a title='For initial sort by First Name, use "sort= 2" in your shortcode.'>First Name</a>304 <a title='For initial sort by First Name, use "sort=1" in your shortcode.'>First Name</a> 305 305 <a href='{$stafflisturl}&s=first-' title='Sort by First Name Descending' class='sort_d ".($s=='first-'?'selected':'')."'><span>Descending</span></a> 306 306 </th><th> </th> 307 307 <th><a href='{$stafflisturl}&s=dept' title='Sort by Department Ascending' class='sort_a ".($s=='dept'?'selected':'')."'><span>Ascending</span></a> 308 <a title='For initial sort by Department, use "sort= 3" in your shortcode.'>Department</a>308 <a title='For initial sort by Department, use "sort=5" in your shortcode.'>Department</a> 309 309 <a href='{$stafflisturl}&s=dept-' title='Sort by Department Descending' class='sort_d ".($s=='dept-'?'selected':'')."'><span>Descending</span></a> 310 310 </th><th> </th> … … 630 630 } 631 631 if(!$sort) $sort = $default; 632 632 633 //check sorting for numeric 633 634 $isnumeric = ( $wpdb->get_var( "SELECT COUNT(*) FROM {$staffdb} WHERE {$sort} REGEXP '[^0-9]'" ) > 0 ? false : true);
Note: See TracChangeset
for help on using the changeset viewer.