tweaked filter. #1249
This commit is contained in:
parent
2b837ca000
commit
6cc4eaf52e
|
@ -298,7 +298,7 @@ function woocommerce_admin_scripts() {
|
|||
endif;
|
||||
|
||||
// Term ordering - only when sorting by term_order
|
||||
if ( ( $screen->id == 'edit-product_cat' || strstr( $screen->id, 'edit-pa_' ) || in_array( $_GET['taxonomy'], apply_filters( 'woocommerce_sortable_taxonomies', array() ) ) ) && ! isset( $_GET['orderby'] ) ) :
|
||||
if ( ( strstr( $screen->id, 'edit-pa_' ) || in_array( $_GET['taxonomy'], apply_filters( 'woocommerce_sortable_taxonomies', array( 'product_cat' ) ) ) ) && ! isset( $_GET['orderby'] ) ) :
|
||||
|
||||
wp_register_script( 'woocommerce_term_ordering', $woocommerce->plugin_url() . '/assets/js/admin/term-ordering.js', array('jquery-ui-sortable') );
|
||||
wp_enqueue_script( 'woocommerce_term_ordering' );
|
||||
|
|
|
@ -173,6 +173,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - Orders page is now the first item in the WooCommerce menu
|
||||
* Tweak - If all variations are the same price, don't show the variation price.
|
||||
* Tweak - woocommerce_completed_order_customer_notification_subject hook renamed to for more sense: woocommerce_email_heading_customer_completed_order
|
||||
* Tweak - woocommerce_sortable_taxonomies filter
|
||||
* Fix - Widget init function conflict with widget logic
|
||||
* Fix - PLN currency code
|
||||
* Fix - Variation get shipping class ID
|
||||
|
|
|
@ -781,7 +781,7 @@ function woocommerce_terms_clauses($clauses, $taxonomies, $args ) {
|
|||
// wordpress should give us the taxonomies asked when calling the get_terms function. Only apply to categories and pa_ attributes
|
||||
$found = false;
|
||||
foreach ((array) $taxonomies as $taxonomy) :
|
||||
if ($taxonomy=='product_cat' || strstr($taxonomy, 'pa_') || in_array($taxonomy, apply_filters( 'woocommerce_sortable_taxonomies', array()))) :
|
||||
if ( strstr($taxonomy, 'pa_') || in_array( $taxonomy, apply_filters( 'woocommerce_sortable_taxonomies', array( 'product_cat' ) ) ) ) :
|
||||
$found = true;
|
||||
break;
|
||||
endif;
|
||||
|
|
Loading…
Reference in New Issue