Plugin Directory

Changeset 2918433

Timestamp:
05/29/2023 07:40:01 AM (14 months ago)
Author:
nsp-code
Message:

Version: 1.7.7

Location:
taxonomy-terms-order
Files:
22 added
4 edited

Legend:

Unmodified
Added
Removed
  • taxonomy-terms-order/trunk/languages/taxonomy-terms-order.po

    r2890995 r2918433  
    33"Project-Id-Version: Category Order and Taxonomy Terms Order\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2023-03-31 11:08+0300\n"
    6 "PO-Revision-Date: 2023-03-31 11:08+0300\n"
     5"POT-Creation-Date: 2023-0+0300\n"
     6"PO-Revision-Date: 2023-0+0300\n"
    77"Last-Translator: NspCode <contact@nsp-code.com>\n"
    88"Language-Team: nsp-code <electronice_delphi@yahoo.com>\n"
  • taxonomy-terms-order/trunk/readme.txt

    r2890995 r2918433  
    44Tags: category order,terms order, taxonomy order, admin order, categories sort, order category
    55Requires at least: 2.8
    6 Tested up to: 6.2
    7 Stable tag: 1.7.5
     6Tested up to: 6.2
     7Stable tag: 1.7.
    88
    99Order Categories and all custom taxonomies terms (hierarchically) using a Drag and Drop Sortable JavaScript capability.
     
    6060
    6161== Change Log ==
     62
     63
     64
     65
    6266
    6367= 1.7.5 =
  • taxonomy-terms-order/trunk/taxonomy-terms-order.php

    r2890995 r2918433  
    44Plugin URI: http://www.nsp-code.com
    55Description: Order Categories and all custom taxonomies terms (hierarchically) and child terms using a Drag and Drop Sortable javascript capability.
    6 Version: 1.7.5
     6Version: 1.7.
    77Author: Nsp-Code
    88Author URI: https://www.nsp-code.com
     
    158158                   
    159159                    if ( $options['adminsort'] == "1" &&  (!isset($args['ignore_term_order']) ||  (isset($args['ignore_term_order'])  &&  $args['ignore_term_order']  !== TRUE) ) )
    160                         $clauses['orderby'] =   'ORDER BY t.term_order';
     160                        {
     161                            if ( $clauses['orderby']    ==  'ORDER BY t.name' )
     162                                $clauses['orderby'] =   'ORDER BY t.term_order '. $clauses['order'] .', t.name';
     163                                else
     164                                $clauses['orderby'] =   'ORDER BY t.term_order';
     165                           
     166                        }
    161167                       
    162168                    return $clauses;   
Note: See TracChangeset for help on using the changeset viewer.