Changeset 2847574
- Timestamp:
- 01/12/2023 06:42:18 PM (3 years ago)
- Location:
- stafflist/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
stafflist.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stafflist/trunk/readme.txt
r2798476 r2847574 4 4 Tags: staff, directory, faculty, personnel, phonebook, rubrik 5 5 Requires at least: 3.2.1 6 Tested up to: 5.9.36 Tested up to: 6.1.1 7 7 Requires PHP: 5.6 8 8 Stable tag: trunk … … 103 103 104 104 == Changelog == 105 = 3.2.0 = 106 * Fixed bug with >PHP7.4:parse_str() for Custom Labels & Messages, discovered by @eddieatwp (thank you); 107 105 108 = 3.1.9 = 106 109 * Added a new shortcode attribute `sort=n`, where n is the column to be use for sorting when StaffList is first rendered (Your website visitors may still change the sort as they please afterward). Hover the column names in the admin page to reference column numbers that can be used. Per request by @jorniel1 (Thank you); -
stafflist/trunk/stafflist.php
r2798476 r2847574 4 4 Plugin URI: http://wordpress.org/plugins/stafflist/ 5 5 Description: A super simplified staff directory tool 6 Version: 3. 1.96 Version: 3.2.0 7 7 Author: era404 8 8 Author URI: http://www.era404.com … … 876 876 /********************************************************************************************** 877 877 * StaffList Admin > Set some custom labels for Standard Columns (and "No Results Found." message) 878 * $_POST['data']['stafflist']['rename'] = array() => $rns 878 879 ***********************************************************************************************/ 879 880 function ajax_rename(){ 880 global $wpdb, $std, $messaging; parse_str($_POST['data']); $resp = array(); 881 global $wpdb, $std, $messaging; $resp = array(); 882 parse_str($_POST['data'],$rnp); $rns = $rnp['stafflist']['rename']; 881 883 882 884 //rename standard column labels 883 885 foreach($std as $fd => $fdn){ 884 if(isset($ stafflist['rename'][$fd])){885 $title = sanitize_option("stafflist_rename_{$fd}", (string) stripslashes(trim($ stafflist['rename'][$fd])));886 if(isset($rns[$fd])){ 887 $title = sanitize_option("stafflist_rename_{$fd}", (string) stripslashes(trim($rns[$fd]))); 886 888 if(update_option("stafflist_rename_{$fd}", $title)){ 887 889 if(""!=$title && strlen($title)>0){ … … 895 897 //rename some messaging too 896 898 foreach($messaging as $fd => $f){ 897 if(isset($ stafflist['rename'][$fd])){898 $title = sanitize_option("stafflist_rename_{$fd}", (string) stripslashes(trim($ stafflist['rename'][$fd])));899 if(isset($rns[$fd])){ 900 $title = sanitize_option("stafflist_rename_{$fd}", (string) stripslashes(trim($rns[$fd]))); 899 901 if(update_option("stafflist_rename_{$fd}", $title)){ 900 902 if(""!=$title && strlen($title)>0){
Note: See TracChangeset
for help on using the changeset viewer.