[2.6] Check taxonomy is set

Closes #11526
This commit is contained in:
Mike Jolley 2016-07-26 11:18:58 +01:00
parent f5f6245405
commit 3d3b24e39c
1 changed files with 1 additions and 3 deletions

View File

@ -357,11 +357,9 @@ class WC_Admin_Taxonomies {
* @return array
*/
public function disable_checked_ontop( $args ) {
if ( 'product_cat' == $args['taxonomy'] ) {
if ( ! empty( $args['taxonomy'] ) && 'product_cat' === $args['taxonomy'] ) {
$args['checked_ontop'] = false;
}
return $args;
}
}