Skip to content

Commit

Permalink
empty( constant() ) doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJ committed Mar 10, 2024
1 parent 3691d8f commit 94380f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-term-order.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function init() {
add_action( 'wp_ajax_reordering_terms', array( $this, 'ajax_reordering_terms' ) );

// Only blog admin screens
if ( is_blog_admin() || doing_action( 'wp_ajax_inline_save_tax' ) || ( defined( 'WP_CLI' ) && ! empty( constant( 'WP_CLI' ) ) ) ) {
if ( is_blog_admin() || doing_action( 'wp_ajax_inline_save_tax' ) || defined( 'WP_CLI' ) ) {
add_action( 'admin_init', array( $this, 'admin_init' ) );

// Bail if taxonomy does not include colors
Expand Down

0 comments on commit 94380f0

Please sign in to comment.