Fix undefined var. Closes #18499

This commit is contained in:
Mike Jolley 2018-01-18 15:25:27 +00:00
parent dbb6e2716d
commit c618895ece
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table {
protected function query_filters( $query_vars ) {
if ( isset( $query_vars['orderby'] ) ) {
if ( 'price' === $vars['orderby'] ) {
if ( 'price' === $query_vars['orderby'] ) {
// @codingStandardsIgnoreStart
$query_vars = array_merge( $query_vars, array(
'meta_key' => '_price',