Commit Graph

19226 Commits

Author SHA1 Message Date
Mike Jolley 5309b4ca7d woocommerce_delete_order_refund 2017-02-16 12:33:47 +00:00
Mike Jolley 244f075958 Fix preg match
Fixes #13205
2017-02-16 12:21:05 +00:00
Mike Jolley 2afefcad90 Merge pull request #13203 from woocommerce/deprecated-hooks-tests
Deprecated hook handler unit tests
2017-02-16 11:01:45 +00:00
Mike Jolley a06f83ac50 Fix variation image change 2017-02-16 11:00:09 +00:00
Mike Jolley d8a00b97a1 Minify 2017-02-16 10:44:43 +00:00
Mike Jolley 47078b4c15 Check product exists before getting permalink
Closes #13210
2017-02-16 10:38:14 +00:00
Mike Jolley bf384d07be use global in factory if no id is passed
Fixes #13211
2017-02-16 10:33:59 +00:00
Mike Jolley 1b2bdf7bfd Merge pull request #13207 from duracelltomi/master
Adding WP filter to is_order_received_page()
2017-02-16 10:12:05 +00:00
Mike Jolley 771dfc4741 Merge pull request #13209 from woocommerce/issues/13208/fix-deprecated-woocommerce_format_decimal
Replaced deprecated woocommerce_format_decimal with wc_format_decimal.
2017-02-16 10:07:29 +00:00
Akeda Bagus 9ad529f170
Replaced deprecated woocommerce_format_decimal with wc_format_decimal.
Fixes #13208.
2017-02-16 13:49:56 +07:00
Thomas Geiger 5f6295264d Adding WP filter to is_order_received_page()
Many plugins and themes rely on is_order_received_page() to include special codes when the user places an order. Some plugins however alter the flow: Klarna checkout for example uses a completely custom checkout flow, some other plugins adds the option to the user to specify a WP page as "the" order received page instead of the WooCommerce default. All those plugins break codes where is_order_received_page() is being used.
2017-02-16 07:00:16 +01:00
Claudiu Lodromanean ba2b767006 Modify tests for PHP 5.2 compat 2017-02-15 13:50:25 -08:00
Claudiu Lodromanean ca541f5704 Fix PHP 5.2 compat error 2017-02-15 13:18:46 -08:00
Claudiu Lodromanean 829fa246f2 Formatting 2017-02-15 12:13:29 -08:00
Claudiu Lodromanean fd9d52a3f7 Modify test for PHP <5.4 compatibility 2017-02-15 12:07:35 -08:00
Claudiu Lodromanean e8579c649c Deprecated hook handler unit tests 2017-02-15 11:34:14 -08:00
Mike Jolley 9b7395705a Fix checkout $order property 2017-02-15 17:07:03 +00:00
Mike Jolley f664fb955f Refunds cannot be trashed
Avoid trashed status after deleting a refund.

Fixes #13200
2017-02-15 17:02:05 +00:00
Claudiu Lodromanean dda98da4ad Merge pull request #13192 from woocommerce/deprecated-hooks
Deprecated hook handling
2017-02-15 08:40:16 -08:00
Claudio Sanches 7baaeaafd0 Public WC()->query->get_endpoints_mask() #13179 2017-02-15 12:30:23 -02:00
Claudio Sanches 185b1929e2 Merge pull request #13179 from helgatheviking/filter_query_vars
add woocommerce_get_query_vars filter
2017-02-15 12:28:01 -02:00
Mike Jolley 1dfdecf9b7 Merge pull request #13198 from woocommerce/fix/notice-on-saving-order
Fix PHP notice when there are shipping taxes.
2017-02-15 14:20:39 +00:00
Boro Sitnikovski 5dd607023b Fix PHP notice when there are shipping taxes. 2017-02-15 15:17:04 +01:00
Mike Jolley 019b2515b8 Merge pull request #13151 from thenbrent/reusable_checkout_line_item_creation
Make WC_Checkout line item creation methods reusable by 3rd party code
2017-02-15 13:11:41 +00:00
Mike Jolley adb718b71e Missing include 2017-02-15 11:45:07 +00:00
Mike Jolley affcf6fb9d Merge pull request #13195 from rasmusbe/patch-3
Remove deprecated jQuery bind calls
2017-02-15 11:15:35 +00:00
Rasmus a77bd11dad Remove deprecated jQuery bind calls
As of jQuery 3.0, .bind() has been deprecated. It was superseded by the .on() method for attaching event handlers to a document since jQuery 1.7, so its use was already discouraged.

Since jQuery 1.7 or higher is included in the required WordPress version this seems like a safe and sane change.
2017-02-15 10:43:16 +01:00
Claudio Sanches 9012fead56 Merge pull request #13136 from woocommerce/improvement-12990
Add logic to variation title generation and remove redundant template info.
2017-02-14 19:15:48 -02:00
Claudiu Lodromanean 44af1237e5 Move things around for performance 2017-02-14 13:11:45 -08:00
Mike Jolley e8628ab412 Merge pull request #13188 from Chouby/master
[2.7] Add filter woocommerce_duplicate_product_exclude_children back
2017-02-14 19:39:17 +00:00
Mike Jolley 738ff59c46 Merge pull request #13190 from franticpsyx/updated-props-data-store-handling
[2.7] Allow update_post_meta and handle_updated_props methods to be overriden
2017-02-14 19:37:33 +00:00
Mike Jolley 0c7218047c Fix error message 2017-02-14 19:31:14 +00:00
Mike Jolley e0d1cfc7b0 Actions 2017-02-14 19:23:57 +00:00
Claudiu Lodromanean 749971759f Reduce spacing back to original 2017-02-14 11:22:50 -08:00
Claudiu Lodromanean 332e79da8d Re-approach attribute skipping in simpler, general purpose way 2017-02-14 11:20:20 -08:00
Mike Jolley 17e8ea8236 Filter hooks 2017-02-14 18:57:45 +00:00
Mike Jolley 7b0b1529bf woocommerce_checkout_order_processed bw compat 2017-02-14 18:57:29 +00:00
Mike Jolley 6add2f9a64 WC_Deprecated_Hooks abstract 2017-02-14 18:56:09 +00:00
Mike Jolley 1a61f20785 Add actions to trigger legacy actions 2017-02-14 18:55:56 +00:00
Mike Jolley c53d0cc89c Correctly deprecate all methods and move action/filter code 2017-02-14 18:55:30 +00:00
Manos Psychogyiopoulos 821b360ac1 remove stray error_log 2017-02-14 18:26:40 +02:00
Manos Psychogyiopoulos 1895f65d2d allow update_post_meta and handle_updated_props to be overriden 2017-02-14 18:14:37 +02:00
Frédéric Demarle f502e306e6 Add filter woocommerce_duplicate_product_exclude_children back 2017-02-14 16:39:49 +01:00
Mike Jolley b40441489c Merge pull request #13184 from woocommerce/issues/13183/fix-meta-key
Fix wrong meta key in recorded_coupon_usage_counts getter/setter.
2017-02-14 10:43:34 +00:00
Akeda Bagus 840a4b18a6
Fix wrong meta key in recorded_coupon_usage_counts getter/setter.
Fixes #13183.
Fixes #13182.
2017-02-14 17:33:32 +07:00
Claudiu Lodromanean 3068d56bac Remove unused variable 2017-02-13 14:19:26 -08:00
Claudiu Lodromanean ab1b3201e0 Update docblock 2017-02-13 13:54:52 -08:00
Claudiu Lodromanean afcbd456c4 Skip attributes in get_formatted_meta_data a different way 2017-02-13 13:53:22 -08:00
Claudiu Lodromanean 469210b02b Minor formatting cleanup 2017-02-13 11:47:28 -08:00
Claudiu Lodromanean a8b491b55b Handle product titles with no attributes 2017-02-13 11:45:25 -08:00