SKU: search case insensitive support

This commit is contained in:
Gerhard 2013-05-02 13:23:12 +02:00
parent 130a8074f9
commit a93cee0cba
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ function woocommerce_admin_product_search( $wp ) {
unset( $wp->query_vars['s'] );
$wp->query_vars['p'] = $id;
elseif( 'SKU:' == substr( $wp->query_vars['s'], 0, 4 ) ) :
elseif( 'SKU:' == strtoupper( substr( $wp->query_vars['s'], 0, 4 ) ) ) :
$sku = trim( substr( $wp->query_vars['s'], 4 ) );