Plugin Directory

Changeset 3218000


Ignore:
Timestamp:
01/06/2025 10:11:23 PM (15 months ago)
Author:
era404
Message:

Tested on WordPress 6.7.1;

Location:
stafflist/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stafflist/trunk/readme.txt

    r2860478 r3218000  
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=464DEX6U6DL5N
    44Tags: staff, directory, faculty, personnel, phonebook, rubrik
    5 Requires at least: 3.2.1
     5Requires at least: 3.2.2
    66Tested up to: 6.1.1
    77Requires PHP: 5.6
     
    103103
    104104== Changelog ==
     105= 3.2.2 =
     106* Tested on WordPress 6.7.1;
     107
    105108= 3.2.1 =
    106109* Fixed issue with sorts (1:firstname,2:lastname,3:phone,4:email,5:department,...) discovered by @mskwarwsd (thank you);
  • stafflist/trunk/stafflist.css

    r2550014 r3218000  
    112112    outline: none;
    113113    font-size: 12px;
    114     min-height: 27px;
    115114    display: inline-block;
    116115    padding: 3px 8px;
  • stafflist/trunk/stafflist.php

    r2860478 r3218000  
    44Plugin URI: http://wordpress.org/plugins/stafflist/
    55Description: A super simplified staff directory tool
    6 Version: 3.2.1
     6Version: 3.2.2
    77Author: era404
    88Author URI: http://www.era404.com
     
    10321032       
    10331033        //removing old nonstandard columns, reordering standard columns
    1034         for($i = 1; $i <= 20; $i++) {
     1034        for($i = 1; $i <= 20; $i++){
    10351035            $fixed = array("firstname","lastname","phone","email","department");
    10361036            if(isset($fixed[ ($i-1) ])){ /*reset standard*/
     
    10441044        }
    10451045        $col = (int) 6;
    1046         for($i = 1; $i <= 15; $i++) {
     1046        for($i = 1; $i <= 15; $i++){
    10471047            $nonstdcolumn = (count($nonstdnames)>0 ? array_shift($nonstdnames) : NULL);
    1048             if(trim($nonstdcolumn)=="") continue;
     1048            if(trim($nonstdcolumn??"")=="") continue;
    10491049            $q = "UPDATE {$staffmetadb} SET name=%s, active=%d WHERE id=%d";
    10501050            $wpdb->query($wpdb->prepare($q, $nonstdcolumn, (is_null($nonstdcolumn)?-1:1), $col ));
Note: See TracChangeset for help on using the changeset viewer.