Plugin Updates
This commit is contained in:
@@ -288,6 +288,9 @@ class WC_AJAX {
|
||||
|
||||
if ( is_array( $posted_shipping_methods ) ) {
|
||||
foreach ( $posted_shipping_methods as $i => $value ) {
|
||||
if ( ! is_string( $value ) ) {
|
||||
continue;
|
||||
}
|
||||
$chosen_shipping_methods[ $i ] = $value;
|
||||
}
|
||||
}
|
||||
@@ -347,6 +350,9 @@ class WC_AJAX {
|
||||
|
||||
if ( is_array( $posted_shipping_methods ) ) {
|
||||
foreach ( $posted_shipping_methods as $i => $value ) {
|
||||
if ( ! is_string( $value ) ) {
|
||||
continue;
|
||||
}
|
||||
$chosen_shipping_methods[ $i ] = $value;
|
||||
}
|
||||
}
|
||||
@@ -2058,7 +2064,8 @@ class WC_AJAX {
|
||||
|
||||
$children = get_terms( $taxonomy, "child_of=$id&menu_order=ASC&hide_empty=0" );
|
||||
|
||||
if ( $term && count( $children ) ) {
|
||||
$children_count = is_countable( $children ) ? count( $children ) : 0;
|
||||
if ( $term && $children_count ) {
|
||||
echo 'children';
|
||||
wp_die();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user