Skip to content

Commit

Permalink
Merge pull request woocommerce#3076 from kloon/master
Browse files Browse the repository at this point in the history
SKU: search case insensitive
  • Loading branch information
coenjacobs committed May 2, 2013
2 parents b1f3af5 + a93cee0 commit fd69d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/post-types/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );

Expand Down

0 comments on commit fd69d72

Please sign in to comment.