- Removed post type classes. Since they were always loaded, there was
no benefit having them split up. Combined meaning less hooked in
methods.
- Stopped loading some function files and sessions in the admin area.
They are not needed there.
- Made a few admin page classes static as they are stateless
- Store variation data for order items added through the admin
- do 'woocommerce_ajax_add_order_item_meta' action only if $item_id exists
- fixed some indenting
- Store variation data for order items added through the admin
- do 'woocommerce_ajax_add_order_item_meta' action only if $item_id exists
- fixed some indenting
Because the json_search_customer_name action is in the scope of $this, and there's no instance of it to allow remove_action() to play nicely with, it's really difficult to modify this query. And, unfortunately, it's quite non-performant on large user tables.
One possible option would be to allow users to filter this query directly. This PR reflects that approach.
For reference: https://gist.github.com/curtismchale/9470986, #5095
Because the json_search_customer_name action is in the scope of $this, and there's no instance of it to allow remove_action() to play nicely with, it's really difficult to modify this query. And, unfortunately, it's quite non-performant on large user tables.
One possible option would be to allow users to filter this query directly. This PR reflects that approach.
For reference: https://gist.github.com/curtismchale/9470986, #5095
The superglobals $_GET and $_REQUEST are already decoded. Using
urldecode() on an element in $_GET or $_REQUEST could have unexpected
and dangerous results.
See Notes:
http://us1.php.net/manual/en/function.urldecode.php