Commit Graph

26777 Commits

Author SHA1 Message Date
Steve Grunwell 90c1a310f1 For consistency with the other endpoints, rename the 'woocommerce_rest_system_status_tool_executed' hook to 'woocommerce_rest_insert_system_status_tool'.
Reference: https://github.com/woocommerce/woocommerce/pull/18505#pullrequestreview-89828432
2018-01-18 16:59:47 +00:00
Mike Jolley 01cb238adb Move customer CSS rule below System.
CSS needs minifying before release
2018-01-18 16:54:22 +00:00
Claudiu Lodromanean 673546b7e0
Merge pull request #18504 from bekarice/fix/order-modal-styles
Fix: handle long status names in order modal
2018-01-18 08:35:15 -08:00
Mike Jolley 1fc6155167 Fix cart ajax triggers
Closes #18498
2018-01-18 16:31:17 +00:00
Philipp Bammes fecc0d00fd
Remove legacy "view" key from register_post_type() 2018-01-18 16:59:53 +01:00
Mike Jolley c618895ece Fix undefined var. Closes #18499 2018-01-18 15:25:27 +00:00
Manos Psychogyiopoulos e77ec2444e Add woocommerce_admin_html_order_preview_item_class filter
For parity with woocommerce_admin_html_order_item_class filter in html-order-item.php view.
2018-01-18 16:57:51 +02:00
Konstantin Kovshenin 3c3077d305 Helper: Prompt a Helper connection only on relevant screens.
Fixes #18452
2018-01-18 12:28:00 +03:00
Gerhard Potgieter f48985095b Update image galery to use CRUD and not directly meta_data calls 2018-01-18 11:10:26 +02:00
Steve Grunwell cc91fba4f8 *WHITESPACE ONLY* Clean up whitespace in the WC_REST_System_Status_Tools_Controller file, according to WordPress coding standards 2018-01-17 22:33:58 +00:00
Steve Grunwell 86c449accf Add missing hard-stops and parentheses for new objects being instantiated, enabling tests/unit-tests/api/system-status.php to pass coding standard checks 2018-01-17 22:13:57 +00:00
Steve Grunwell fa42eb0edf Temporarily disable the WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar sniff at the end of the test_get_system_status_info_theme() method.
The wp_get_theme() function returns a WP_Theme object, which uses uppercase property names, which goes against typical WordPress conventions.

This uses the more modern (read: PHP_CodeSniffer 3.2.0+) syntax for temporarily disabling sniffs. For more details, please see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file.
2018-01-17 22:11:32 +00:00
Steve Grunwell 8c3fd0c75f Don't flag instances of print_r() within the tests/ directory.
In some cases, calls like `print_r( $data, true )` (return the printed array as a string) can be helpful for providing context if/when a test fails.
2018-01-17 22:10:56 +00:00
Steve Grunwell 6b79619983 Add a file-level docblock for the WC_Tests_REST_System_Status class 2018-01-17 22:10:55 +00:00
Steve Grunwell 1a0fd86de5 *WHITESPACE ONLY* Fix alignment of code to satisfy PHP_CodeSniffer 2018-01-17 21:50:26 +00:00
Steve Grunwell b7825faa39 Don't hold the test suite to the same naming conventions as WordPress/WooCommerce. 2018-01-17 21:50:18 +00:00
Steve Grunwell ff0e200ae5 Introduce the woocommerce_rest_system_status_tool_executed action, which fires after one of the WooCommerce REST system status tools is executed. 2018-01-17 21:48:23 +00:00
Beka Rice e270609e33 Fix: handle long status names in order modal 2018-01-17 16:28:59 -05:00
Steve Grunwell 473262cb13 Merge branch 'master' into tests/api-system-status 2018-01-17 21:21:41 +00:00
Claudiu Lodromanean dbb6e2716d
Merge pull request #18497 from woocommerce/update/setup-wizard-activate-but-disable-ppec-by-default
Setup wizard: activate but don't enable PPEC by default
2018-01-17 11:31:55 -08:00
Paul Dechov 3dee78ea54 Tweak variable name 2018-01-17 12:43:44 -05:00
Jonathan Belcher 77578c5509
Corrects string to use sprintf properly 2018-01-17 10:35:43 -05:00
Claudiu Lodromanean 9236f7b7d4
Merge pull request #18496 from ragulka/action-button-style-tweaks
Prevent visual "border jump" when hovering over grouped action buttons
2018-01-17 07:09:40 -08:00
Boro Sitnikovski 7b52082dc3 Allow stock to be overriden by filter when paying for orders 2018-01-17 14:31:56 +01:00
Paul Dechov dc884c5e2f Refactor so as to leave 'enabled' setting alone in case gateway was already enabled 2018-01-16 16:15:30 -05:00
Paul Dechov fcf3d368f2 Setup wizard: if selected, activate but disable PPEC gateway by default 2018-01-16 16:14:35 -05:00
Jonathan Belcher dbb0f6f1ef Add links to Sharing and Transferring string 2018-01-16 14:35:30 -05:00
ragulka 2a2418e222 tweak grouped action button margins 2018-01-16 12:15:04 +02:00
Claudiu Lodromanean 3b895bd0a9
Merge pull request #18490 from woocommerce/fix/cart-hash-naming
cart_hash_key param
2018-01-15 10:13:55 -08:00
Steve Grunwell be05a55b9d Add missing documentation within the WC_Unit_Test_Case class that was causing CI to fail. 2018-01-15 17:38:13 +00:00
Steve Grunwell 6261ea6cbb Temporarily disable the WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar sniff at the end of the test_get_system_status_info_theme() method.
The wp_get_theme() function returns a WP_Theme object, which uses uppercase property names, which goes against typical WordPress conventions.

This uses the more modern (read: PHP_CodeSniffer 3.2.0+) syntax for temporarily disabling sniffs. For more details, please see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file.
2018-01-15 17:21:35 +00:00
Steve Grunwell 6fe6faf7ca Don't flag instances of print_r() within the tests/ directory.
In some cases, calls like `print_r( $data, true )` (return the printed array as a string) can be helpful for providing context if/when a test fails.
2018-01-15 17:12:33 +00:00
Steve Grunwell 00268c0fa2 Add a file-level docblock for the WC_Tests_REST_System_Status class 2018-01-15 17:06:42 +00:00
Steve Grunwell 477245c693 The WordPress coding standards dictate that new object instantiation should always use parenthesis 2018-01-15 17:05:01 +00:00
Mike Jolley 270f4c3608 Update text and clear cart meta data. 2018-01-15 17:04:50 +00:00
Steve Grunwell b4f14b4958 Add missing hard-stops at the end of comments, and a missing method comment for test_execute_system_tool_add_order_indexes() 2018-01-15 17:04:27 +00:00
Steve Grunwell 1843a05ea6 *WHITESPACE ONLY* Fix alignment of code to satisfy PHP_CodeSniffer 2018-01-15 17:03:36 +00:00
Steve Grunwell 4804d9e8a5 Don't hold the test suite to the same naming conventions as WordPress/WooCommerce. 2018-01-15 17:02:39 +00:00
Steve Grunwell 8484991f99 Add tests around the add_order_indexes system status tool.
This test ensures that indexes are created within postmeta for any orders that are missing billing_address_index and/or shipping_address_index values.
2018-01-15 16:56:44 +00:00
Jonathan Belcher 535e1c5b58
Updates Helper text to be correct 2018-01-15 11:41:32 -05:00
Claudiu Lodromanean 99f58c4c56
Merge pull request #18488 from woocommerce/fix/18474
Protocol-relative paths are absolute.
2018-01-15 08:28:42 -08:00
Claudiu Lodromanean 6fa23069a4
Merge pull request #18484 from woocommerce/fix/18481
Adding view_items string
2018-01-15 08:15:25 -08:00
Claudiu Lodromanean 1d2c27df6f
Merge pull request #18485 from ragulka/order-status-badge-styling
Gracefully handle order status text overflow
2018-01-15 08:13:50 -08:00
Mike Jolley 431b95dade cart_hash_key param 2018-01-15 16:03:27 +00:00
Steve Grunwell 02f4ed19f4 Merge branch 'master' into tests/reports 2018-01-15 15:57:40 +00:00
Mike Jolley 9a2b051d74 Relative paths are absolute. 2018-01-15 15:41:31 +00:00
Mike Jolley 0006d575a6
Merge pull request #18486 from woocommerce/update-japanese-prefectures-coy
Spelling correction
2018-01-15 15:37:46 +00:00
Mike Jolley 8f6152c7e2 Fix tab corner offset 2018-01-15 15:36:51 +00:00
John Coy 0b0ce465f2 Spelling correction
Japanese prefecture Hokkai-do required hyphen to speparate prefecture from prefecture type.
2018-01-15 09:17:59 -06:00
ragulka a8d8d7d27c gracefully handle overly long order statuses 2018-01-15 16:55:26 +02:00