Plugin Directory

Changeset 3254787


Ignore:
Timestamp:
03/12/2025 01:05:49 PM (13 months ago)
Author:
3skel
Message:

1.0.22 Fixed files order by date 2

Location:
hypertransfer/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • hypertransfer/trunk/assets/admin.php

    r3249887 r3254787  
    137137// Lista dei file registrati nella tabella option e quindi presenti nella cartella VERSIONE API WP
    138138
    139 function HPTR_items_files_list($order_by = 'date', $order = 'DESC') {
     139// Lista dei file registrati nella tabella option e quindi presenti nella cartella VERSIONE API WP
     140function HPTR_items_files_list() {
    140141    // Ottieni tutte le opzioni
    141142    $all_options = wp_load_alloptions();
     
    147148            $filtered_options[$key] = maybe_unserialize($value);
    148149        }
    149     }
    150 
    151     // Ordina l'array in base alla chiave specificata mantenendo le chiavi originali
    152     uasort($filtered_options, function ($a, $b) use ($order_by, $order) {
    153         $valA = isset($a[$order_by]) ? $a[$order_by] : null;
    154         $valB = isset($b[$order_by]) ? $b[$order_by] : null;
    155 
    156         if ($valA == $valB) {
    157             return 0;
    158         }
    159 
    160         return ($order === 'ASC') ? ($valA <=> $valB) : ($valB <=> $valA);
    161     });
     150
     151    }
     152
     153// Invertire l'ordine delle chiavi mantenendo i valori
     154$filtered_options = array_reverse($filtered_options, true);
    162155
    163156    return $filtered_options;
  • hypertransfer/trunk/hypertransfer.php

    r3254774 r3254787  
    55 * License:           GPL v2 or later
    66 * Description:       This plugin is used for the rapid and easy transfer of files, stored on your web space, via links. Valid alternative to file transfer sites, with the advantage of having no transfer deadline, the files are stored on your private web space and customers will be able to visit the website via the download page.
    7  * Version:           1.0.21
     7 * Version:           1.0.22
    88 * Requires at least: 6.3
    99 * Requires PHP:      7.4
  • hypertransfer/trunk/readme.txt

    r3254774 r3254787  
    33Tags: file, transfer, sender, share
    44Tested up to: 6.7
    5 Stable tag: 1.0.21
     5Stable tag: 1.0.22
    66Requires PHP: 7.4
    77License: GPLv2
     
    7474Fixed files order by date
    7575
     76= 1.0.22 =
     77Fixed files order by date 2
     78
    7679== Language ==
    7780 
Note: See TracChangeset for help on using the changeset viewer.