From e0635a6db75f62b1e2867c62e526ddd498d6cebb Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Thu, 2 May 2013 17:09:50 +0200 Subject: [PATCH] SKU: search case insensitive support As committed in master as well: https://github.com/woothemes/woocommerce/commit/a93cee0cbac395800e9276c596a6329f9968d6c9 --- admin/post-types/product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/post-types/product.php b/admin/post-types/product.php index e633a35a7a0..2dbac87a8d7 100644 --- a/admin/post-types/product.php +++ b/admin/post-types/product.php @@ -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 ) );