Mike Jolley
e8e5b40ba8
Just a basic class
2018-03-07 13:45:25 +00:00
Mike Jolley
823332b5db
Merge pull request #19267 from xlplugins/master
...
PHP Fatal Error when invalid variation ID provided in WC_Product_Variable::get_available_variation()
2018-03-07 11:45:56 +00:00
Amritansh_tact9
10e80c83d1
Applied array_filter() to the $avaiable_variations in WC_Product_Variable::get_available_variations() to ensure only array type values get returned.
...
Added docbock in favor of boolean false for WC_Product_Variable::get_available_variation()
2018-03-07 17:07:42 +05:30
Mike Jolley
4e262a81c1
Merge pull request #19261 from woocommerce/fix/phpcs-customizer
...
PHPCS fixes for customizer and export directories
2018-03-07 11:26:45 +00:00
Mike Jolley
7cb2e11c01
Merge branch 'pr/19257'
2018-03-07 11:18:53 +00:00
Mike Jolley
cc08eff0b0
Standards
2018-03-07 11:18:42 +00:00
Mike Jolley
2334ef1f65
Merge pull request #19268 from woocommerce/remove-unused-methods
...
Remove unused code from WC_CLI_REST_Command class
2018-03-07 11:16:51 +00:00
Mike Jolley
7255e4a371
Merge pull request #19281 from woocommerce/fix/19279-db-version-fatal-system-status
...
Dont use mysql functions directly on system status page
2018-03-07 11:10:36 +00:00
Mike Jolley
79b240d40c
Merge pull request #19283 from woocommerce/fix/19272-unicode-selected-variations
...
Variable auto select from URL
2018-03-07 11:06:05 +00:00
Gerhard Potgieter
fb76e1dd7d
Revert tamplate version to 3.4.0
2018-03-07 12:53:27 +02:00
Mike Jolley
bb94d2467f
Merge pull request #19160 from woocommerce/fix/19112
...
Set is_tax to true when on unsupported theme taxonomy archive
2018-03-07 10:39:39 +00:00
Amritansh_tact9
7e05af1296
Replaced `WC_Product` with `WC_Product_Variation` for a more specific check in WC_Product_Variable::get_available_variation().
2018-03-07 15:59:21 +05:30
Rodrigo Primo
cc67dc9f74
Merge branch 'master' into remove-unused-methods
2018-03-07 07:27:43 -03:00
Rodrigo Primo
266b362d7e
Merge pull request #19271 from woocommerce/fix/includes-admin-plugin-updates-phpcs-violations
...
PHPCS fixes for includes/admin/plugin-updates directory
2018-03-07 07:17:54 -03:00
Rodrigo Primo
3d99fecc6b
Merge pull request #19269 from woocommerce/fix/includes-cli-phpcs-violations
...
PHPCS fixes for includes/cli directory
2018-03-07 07:17:35 -03:00
Mike Jolley
9f918cacc6
Merge pull request #19274 from woocommerce/update/api-phpcs
...
Fixed PHPCS violations on includes/api
2018-03-07 10:16:30 +00:00
Gerhard Potgieter
dce123bf23
Bump template version
2018-03-07 11:59:10 +02:00
Gerhard Potgieter
11c85c7b8d
Do not pass the attribute name coming from the $_REQUEST variable through sanitize_title when working out the selected attribute as non english chars result in non matching checks. wc_dropdown_variation_attribute_options takes care of sanitization already.
2018-03-07 10:47:18 +02:00
Gerhard Potgieter
4b8a82093d
Make system status DB version display compatible with rest system status controller data. Closes #19279
2018-03-07 08:18:23 +02:00
Claudio Sanches
5f7b9a98db
Merge pull request #19273 from woocommerce/fix/includes-admin-list-tables
...
PHPCS fixes for includes/admin/list-tables directory
2018-03-06 20:48:48 -03:00
Rodrigo Primo
af47f7b0b2
Fix PHPCS violations in includes/admin/list-tables/class-wc-admin-list-table-products.php
2018-03-06 15:08:46 -03:00
Rodrigo Primo
2ec74d2e15
Fix PHPCS violations in includes/admin/list-tables/class-wc-admin-list-table-orders.php
2018-03-06 15:08:30 -03:00
Rodrigo Primo
d2bfa5e6c5
Fix PHPCS violations in includes/admin/list-tables/class-wc-admin-list-table-coupons.php
2018-03-06 15:08:16 -03:00
Rodrigo Primo
f4c17e20c7
Fix PHPCS violations in includes/admin/list-tables/abstract-class-wc-admin-list-table.php
2018-03-06 15:08:00 -03:00
Claudio Sanches
f0d37ff4f5
Fixed PHPCS violations on REST API
2018-03-06 15:04:58 -03:00
Rodrigo Primo
2169f1f567
Fix PHPCS violations in includes/admin/plugin-updates/views/html-notice-untested-extensions-inline.php
2018-03-06 10:58:45 -03:00
Rodrigo Primo
f38e76421a
Fix PHPCS violations in includes/admin/plugin-updates/views/html-notice-untested-extensions-modal.php
2018-03-06 10:58:03 -03:00
Rodrigo Primo
3932710136
Fix PHPCS violations in includes/admin/plugin-updates/class-wc-plugin-updates.php
2018-03-06 10:50:06 -03:00
Rodrigo Primo
ba563b8ec0
Fix PHPCS violations in includes/admin/plugin-updates/class-wc-plugins-screen-updates.php
2018-03-06 10:44:35 -03:00
Rodrigo Primo
85e01565e0
Fix PHPCS violations in includes/admin/plugin-updates/class-wc-updates-screen-updates.php
2018-03-06 10:34:18 -03:00
Rodrigo Primo
95b14b3674
Merge branch 'master' into fix/includes-cli-phpcs-violations
2018-03-06 10:32:56 -03:00
Rodrigo Primo
7cd28774b1
Merge pull request #19266 from woocommerce/fix/phpcs-import
...
PHPCS fixes for import and interface directories
2018-03-06 10:10:45 -03:00
Rodrigo Primo
cd90c9bbc8
Fix PHPCS violations in includes/cli/class-wc-cli-update-command.php
2018-03-06 09:28:29 -03:00
Rodrigo Primo
8eb32d2c8c
Fix PHPCS violations in includes/cli/class-wc-cli-tool-command.php
2018-03-06 09:24:47 -03:00
Rodrigo Primo
66911be455
Fix PHPCS violations in includes/cli/class-wc-cli-runner.php
2018-03-06 09:20:58 -03:00
Rodrigo Primo
70a03e6dfa
Fix PHPCS violations in includes/cli/class-wc-cli-rest-command.php
2018-03-06 09:07:33 -03:00
Rodrigo Primo
4f18567e74
Remove unused code from WC_CLI_REST_Command class
...
This commit removes three unused methods and one unused property from the WC_CLI_REST_Command class that I found while fixing PHPCS violations in the includes/cli directory.
2018-03-06 08:58:32 -03:00
Rodrigo Primo
57ae5d8150
WooCommerce CLI commands use anonymous functions
...
Contrary to the rest of the WC codebase, WC CLI commands require PHP >= 5.5 and use anonymous functions. This commit excludes the PHPCombatibility rule for anonymous functions (PHPCompatibility.PHP.NewClosure.Found) when PHPCS is checking the `includes/cli` directory.
2018-03-06 08:46:28 -03:00
Rodrigo Primo
b6674b3a8f
Replace calls to json_decode() with wp_json_decode()
2018-03-06 08:18:31 -03:00
Rodrigo Primo
82f99c4042
Don't check for PHPCompatibility.PHP.NewFunctions.array_columnFound in the includes/cli directory
...
WooCommerce CLI commands use array_column() which was added in PHP 5.5. Since this was not noticed until now it is probably not worth changing and making the code compatible with PHP < 5.5.
2018-03-06 08:12:37 -03:00
Rodrigo Primo
557e85c1d6
Don't check for PHPCompatibility.PHP.NewLanguageConstructs.t_ns_separatorFound in the includes/cli directory
...
WooCommerce CLI commands require PHP >= 5.3 so namespace separators can be used in the code.
2018-03-06 08:02:01 -03:00
Mike Jolley
ad709e940f
Merge pull request #19241 from digitalchild/shipping-calculator
...
Add Shipping Calculator State filter
2018-03-06 10:54:09 +00:00
Amritansh_tact9
da5e31ce2c
Updated WC_Product_Variable::get_available_variation() to handle cases when variation ID provided is deleted/invalid. Throwing PHP fatal error on the next line where $variation->get_price()
2018-03-06 16:10:49 +05:30
Gerhard Potgieter
87c30fd228
PHPCS passing for class-wc-webhook-data-store-interface.php
2018-03-06 12:00:33 +02:00
Gerhard Potgieter
754df69994
PHPCS passing for class-wc-shipping-zone-data-store-interface.php
2018-03-06 11:59:23 +02:00
Gerhard Potgieter
4c6e954c8e
PHPCS passing for class-wc-product-variable-data-store-interface.php
2018-03-06 11:56:07 +02:00
Gerhard Potgieter
936df3e1bb
PHPCS passing for class-wc-product-data-store-interface.php
2018-03-06 11:53:40 +02:00
Gerhard Potgieter
e933b8cfd0
PHPCS passing for class-wc-payment-token-data-store-interface.php
2018-03-06 11:49:02 +02:00
Gerhard Potgieter
00193f5ee4
PHPCS passing for class-wc-order-refund-data-store-interface.php
2018-03-06 11:46:27 +02:00
Gerhard Potgieter
7cd7b18bb3
PHPCS passing for class-wc-order-item-type-data-store-interface.php
2018-03-06 11:45:29 +02:00