Changeset 2705151
- Timestamp:
- 04/05/2022 02:30:06 PM (4 years ago)
- Location:
- simple-taxonomy-ordering
- Files:
-
- 4 edited
- 1 copied
-
tags/2.3.4 (copied) (copied from simple-taxonomy-ordering/trunk)
-
tags/2.3.4/readme.txt (modified) (2 diffs)
-
tags/2.3.4/yikes-custom-taxonomy-order.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/yikes-custom-taxonomy-order.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-taxonomy-ordering/tags/2.3.4/readme.txt
r2666229 r2705151 4 4 Requires at least: 4.4 5 5 Tested up to: 5.9 6 Stable tag: 2.3. 36 Stable tag: 2.3.4 7 7 8 8 Quickly and easily reorder taxonomy terms with an easy to use and intuitive drag and drop interface. … … 38 38 39 39 == Changelog == 40 41 = 2.3.4 = 42 * Fixes custom order not being displayed on edit-tags pages. 40 43 41 44 = 2.3.3 = -
simple-taxonomy-ordering/tags/2.3.4/yikes-custom-taxonomy-order.php
r2489936 r2705151 5 5 * Description: Custom drag & drop taxonomy ordering. 6 6 * Author: YIKES, Inc. 7 * Version: 2.3. 37 * Version: 2.3.4 8 8 * Author URI: http://www.yikesinc.com 9 9 * Text Domain: simple-taxonomy-ordering … … 55 55 56 56 // Hooks. 57 add_action( ' admin_head', array( $this, 'admin_order_terms' ) );57 add_action( 'current_screen', array( $this, 'admin_order_terms' ) ); 58 58 add_action( 'init', array( $this, 'front_end_order_terms' ) ); 59 59 add_action( 'wp_ajax_yikes_sto_update_taxonomy_order', array( $this, 'update_taxonomy_order' ) ); … … 67 67 private function define_constants() { 68 68 if ( ! defined( 'YIKES_STO_VERSION' ) ) { 69 define( 'YIKES_STO_VERSION', '2.3. 3' );69 define( 'YIKES_STO_VERSION', '2.3.4' ); 70 70 } 71 71 … … 99 99 * Order the terms on the admin side. 100 100 */ 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 ) ) { 105 104 $this->enqueue(); 106 105 $this->default_term_order( $screen->taxonomy ); 107 106 $this->yikes_sto_custom_help_tab(); 107 108 108 add_filter( 'terms_clauses', array( $this, 'set_tax_order' ), 10, 3 ); 109 109 } -
simple-taxonomy-ordering/trunk/readme.txt
r2666229 r2705151 4 4 Requires at least: 4.4 5 5 Tested up to: 5.9 6 Stable tag: 2.3. 36 Stable tag: 2.3.4 7 7 8 8 Quickly and easily reorder taxonomy terms with an easy to use and intuitive drag and drop interface. … … 38 38 39 39 == Changelog == 40 41 = 2.3.4 = 42 * Fixes custom order not being displayed on edit-tags pages. 40 43 41 44 = 2.3.3 = -
simple-taxonomy-ordering/trunk/yikes-custom-taxonomy-order.php
r2489936 r2705151 5 5 * Description: Custom drag & drop taxonomy ordering. 6 6 * Author: YIKES, Inc. 7 * Version: 2.3. 37 * Version: 2.3.4 8 8 * Author URI: http://www.yikesinc.com 9 9 * Text Domain: simple-taxonomy-ordering … … 55 55 56 56 // Hooks. 57 add_action( ' admin_head', array( $this, 'admin_order_terms' ) );57 add_action( 'current_screen', array( $this, 'admin_order_terms' ) ); 58 58 add_action( 'init', array( $this, 'front_end_order_terms' ) ); 59 59 add_action( 'wp_ajax_yikes_sto_update_taxonomy_order', array( $this, 'update_taxonomy_order' ) ); … … 67 67 private function define_constants() { 68 68 if ( ! defined( 'YIKES_STO_VERSION' ) ) { 69 define( 'YIKES_STO_VERSION', '2.3. 3' );69 define( 'YIKES_STO_VERSION', '2.3.4' ); 70 70 } 71 71 … … 99 99 * Order the terms on the admin side. 100 100 */ 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 ) ) { 105 104 $this->enqueue(); 106 105 $this->default_term_order( $screen->taxonomy ); 107 106 $this->yikes_sto_custom_help_tab(); 107 108 108 add_filter( 'terms_clauses', array( $this, 'set_tax_order' ), 10, 3 ); 109 109 }
Note: See TracChangeset
for help on using the changeset viewer.