Plugin Directory

Changeset 2705151


Ignore:
Timestamp:
04/05/2022 02:30:06 PM (4 years ago)
Author:
yikesinc
Message:

Update to version 2.3.4 from GitHub

Location:
simple-taxonomy-ordering
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-taxonomy-ordering/tags/2.3.4/readme.txt

    r2666229 r2705151  
    44Requires at least: 4.4
    55Tested up to: 5.9
    6 Stable tag: 2.3.3
     6Stable tag: 2.3.4
    77
    88Quickly and easily reorder taxonomy terms with an easy to use and intuitive drag and drop interface.
     
    3838
    3939== Changelog ==
     40
     41= 2.3.4 =
     42* Fixes custom order not being displayed on edit-tags pages.
    4043
    4144= 2.3.3 =
  • simple-taxonomy-ordering/tags/2.3.4/yikes-custom-taxonomy-order.php

    r2489936 r2705151  
    55 * Description: Custom drag & drop taxonomy ordering.
    66 * Author: YIKES, Inc.
    7  * Version: 2.3.3
     7 * Version: 2.3.4
    88 * Author URI: http://www.yikesinc.com
    99 * Text Domain: simple-taxonomy-ordering
     
    5555
    5656            // Hooks.
    57             add_action( 'admin_head', array( $this, 'admin_order_terms' ) );
     57            add_action( 'current_screen', array( $this, 'admin_order_terms' ) );
    5858            add_action( 'init', array( $this, 'front_end_order_terms' ) );
    5959            add_action( 'wp_ajax_yikes_sto_update_taxonomy_order', array( $this, 'update_taxonomy_order' ) );
     
    6767        private function define_constants() {
    6868            if ( ! defined( 'YIKES_STO_VERSION' ) ) {
    69                 define( 'YIKES_STO_VERSION', '2.3.3' );
     69                define( 'YIKES_STO_VERSION', '2.3.4' );
    7070            }
    7171
     
    9999         * Order the terms on the admin side.
    100100         */
    101         public function admin_order_terms() {
    102             $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : '';
    103 
    104             if ( ! isset( $_GET['orderby'] ) && ! empty( $screen ) && ! empty( $screen->base ) && $screen->base === 'edit-tags' && $this->is_taxonomy_ordering_enabled( $screen->taxonomy ) ) {
     101        public function admin_order_terms( WP_Screen $screen ) {
     102            // phpcs:disable WordPress.Security.NonceVerification.Recommended -- Form data is not being used.
     103            if ( empty( $_GET['orderby'] ) && 'edit-tags' === $screen->base && $this->is_taxonomy_ordering_enabled( $screen->taxonomy ) ) {
    105104                $this->enqueue();
    106105                $this->default_term_order( $screen->taxonomy );
    107106                $this->yikes_sto_custom_help_tab();
     107
    108108                add_filter( 'terms_clauses', array( $this, 'set_tax_order' ), 10, 3 );
    109109            }
  • simple-taxonomy-ordering/trunk/readme.txt

    r2666229 r2705151  
    44Requires at least: 4.4
    55Tested up to: 5.9
    6 Stable tag: 2.3.3
     6Stable tag: 2.3.4
    77
    88Quickly and easily reorder taxonomy terms with an easy to use and intuitive drag and drop interface.
     
    3838
    3939== Changelog ==
     40
     41= 2.3.4 =
     42* Fixes custom order not being displayed on edit-tags pages.
    4043
    4144= 2.3.3 =
  • simple-taxonomy-ordering/trunk/yikes-custom-taxonomy-order.php

    r2489936 r2705151  
    55 * Description: Custom drag & drop taxonomy ordering.
    66 * Author: YIKES, Inc.
    7  * Version: 2.3.3
     7 * Version: 2.3.4
    88 * Author URI: http://www.yikesinc.com
    99 * Text Domain: simple-taxonomy-ordering
     
    5555
    5656            // Hooks.
    57             add_action( 'admin_head', array( $this, 'admin_order_terms' ) );
     57            add_action( 'current_screen', array( $this, 'admin_order_terms' ) );
    5858            add_action( 'init', array( $this, 'front_end_order_terms' ) );
    5959            add_action( 'wp_ajax_yikes_sto_update_taxonomy_order', array( $this, 'update_taxonomy_order' ) );
     
    6767        private function define_constants() {
    6868            if ( ! defined( 'YIKES_STO_VERSION' ) ) {
    69                 define( 'YIKES_STO_VERSION', '2.3.3' );
     69                define( 'YIKES_STO_VERSION', '2.3.4' );
    7070            }
    7171
     
    9999         * Order the terms on the admin side.
    100100         */
    101         public function admin_order_terms() {
    102             $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : '';
    103 
    104             if ( ! isset( $_GET['orderby'] ) && ! empty( $screen ) && ! empty( $screen->base ) && $screen->base === 'edit-tags' && $this->is_taxonomy_ordering_enabled( $screen->taxonomy ) ) {
     101        public function admin_order_terms( WP_Screen $screen ) {
     102            // phpcs:disable WordPress.Security.NonceVerification.Recommended -- Form data is not being used.
     103            if ( empty( $_GET['orderby'] ) && 'edit-tags' === $screen->base && $this->is_taxonomy_ordering_enabled( $screen->taxonomy ) ) {
    105104                $this->enqueue();
    106105                $this->default_term_order( $screen->taxonomy );
    107106                $this->yikes_sto_custom_help_tab();
     107
    108108                add_filter( 'terms_clauses', array( $this, 'set_tax_order' ), 10, 3 );
    109109            }
Note: See TracChangeset for help on using the changeset viewer.