Commit Graph

14865 Commits

Author SHA1 Message Date
Chunkford c411c43fdf
Update wc-core-functions.php 2018-03-07 13:14:59 +00:00
Mike Jolley fdab6665c0
Merge pull request #19200 from woocommerce/fix/installed-plugin-not-activated-if-directory-not-matching-slug
Activate plugins during installation process even if directory doesn't match slug
2018-03-07 12:00:14 +00:00
Mike Jolley 7c2ed135d5
Merge pull request #19255 from woocommerce/update/16779
Invalidate cart items when important props are updated
2018-03-07 11:48:11 +00:00
Mike Jolley 07e17aafd5 typo 2018-03-07 11:47:42 +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
Mike Jolley b34e163bd5 No js for all the themes. 2018-03-07 11:44:41 +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 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 4b8a82093d Make system status DB version display compatible with rest system status controller data. Closes #19279 2018-03-07 08:18:23 +02: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 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 b6674b3a8f Replace calls to json_decode() with wp_json_decode() 2018-03-06 08:18:31 -03: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
Gerhard Potgieter 1a2b44f2d3 PHPCS passing for class-wc-order-item-product-data-store-interface.php 2018-03-06 11:43:37 +02:00
Gerhard Potgieter c354b93091 PHPCS passing for class-wc-order-item-data-store-interface.php 2018-03-06 11:42:03 +02:00
Gerhard Potgieter e504022c72 PHPCS passing for class-wc-order-data-store-interface.php 2018-03-06 11:38:03 +02:00
Gerhard Potgieter 42c5e183cd PHPCS passing for class-wc-object-data-store-interface.php 2018-03-06 11:34:16 +02:00
Gerhard Potgieter 96cbebb06b PHPCS passing for class-wc-logger-interface.php 2018-03-06 10:23:28 +02:00
Gerhard Potgieter 1ba9f86001 PHPCS passing for class-wc-log-handler-interface.php 2018-03-06 10:21:27 +02:00
Gerhard Potgieter 8d2cb4850b PHPCS passing for class-wc-importer-interface.php 2018-03-06 10:19:31 +02:00
Gerhard Potgieter 37eacc2585 PHPCS passing for class-wc-customer-download-log-data-store-interface.php 2018-03-06 10:18:33 +02:00
Gerhard Potgieter 2ed9993599 PHPCS passing for class-wc-customer-download-data-store-interface.php 2018-03-06 10:17:25 +02:00
Gerhard Potgieter 993d9cd232 PHPCS passing for class-wc-customer-data-store-interface.php 2018-03-06 10:14:45 +02:00
Gerhard Potgieter 17b6c78d00 PHPCS passing for class-wc-coupon-data-store-interface.php 2018-03-06 10:13:06 +02:00
Gerhard Potgieter 10d1c7f623 PHPCS passing for class-wc-abstract-order-data-store-interface.php 2018-03-06 10:08:42 +02:00
Gerhard Potgieter 85636f8fe7 PHPCS passing for abstract-wc-product-importer.php 2018-03-06 10:04:37 +02:00
Gerhard Potgieter 38892f3067 PHPCS passing for abstract-wc-csv-exporter.php 2018-03-06 07:55:15 +02:00
Gerhard Potgieter 1c191688f8 PHPCS passing for abstract-wc-batch-exporter.php 2018-03-06 07:52:03 +02:00
Gerhard Potgieter b4ec1d372c PHPCS passing for class-wc-customizer-controll-cropping.php 2018-03-06 07:31:20 +02:00
Mike Jolley 88c7c1333b No back links, better link styling 2018-03-05 21:59:32 +00:00
Jon Brown e6f2126b11
opps... not DRY
Photon check should probably should be abstracted, but this works for now
2018-03-05 11:08:40 -10:00
Claudio Sanches e8017e985b Fixed coding standards issues with PHPCBF 2018-03-05 17:53:06 -03:00
Jon Brown 87695bddb7
Checking class exists is insufficient allows for a fatal error when Jetpack class is defined without specific method
There are a half dozen stripped-down versions of JetPack's modules like JP Custom CSS, JP Widget visibility, etc... these all define a class called "Jetpack" but don't define all the methods.
2018-03-05 10:30:05 -10:00
Mike Jolley 1536d50824 Merge branch 'master' into update/18389-wizard-steps-improvements 2018-03-05 20:24:26 +00:00
Mike Jolley 46862deb17 wc_get_cart_item_data_hash function 2018-03-05 19:57:57 +00:00
Rodrigo Primo 44a5903ce6 Fix PHPCS violations in includes/cli using phpcbf
Fix all violations that phpcbf can fix automatically.
2018-03-05 16:46:54 -03:00
Sofyan Sitorus 7d04431571 Add contional check to compare cart item date_modified with product date_modified 2018-03-05 19:42:11 +00:00
Rodrigo Primo 45a404cc3b Merge branch 'master' into includes-admin-phpcs-fixes 2018-03-05 16:40:39 -03:00
Rodrigo Primo 23b69eba53 Use phpcbf to fix coding standard violations in includes/admin
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Mike Jolley 58c87e3fcd
Merge pull request #19148 from woocommerce/tweak/post-processing-custom-coupons
Add filter to allow post processing on custom coupons
2018-03-05 19:18:04 +00:00
Mike Jolley d5a6b4fec1
Merge pull request #19228 from Chunkford/patch-5
Add filter to a coupon's expiry date check
2018-03-05 19:07:01 +00:00
Mike Jolley 66ad22e3fa
Merge pull request #19128 from woocommerce/fix/19123-cli-term-ids
Use correct arg when making rest request in cli
2018-03-05 18:39:48 +00:00
Mike Jolley 73c85ec38d
Merge pull request #19173 from woocommerce/update/19154
Move jquery ui styles to assets
2018-03-05 18:35:46 +00:00
Mike Jolley 838a4bbea3 Remove unused variable 2018-03-05 18:35:07 +00:00
Claudiu Lodromanean b6c1a9d2c1
Merge pull request #19220 from woocommerce/fix/19218
Only append tax label if taxes are enabled
2018-03-05 09:26:10 -08:00
Gerhard Potgieter 5075fb4964 PHPCS passing for abstract-wc-widget.php 2018-03-05 15:21:04 +02:00
Gerhard Potgieter 17f013b5b1 PHPCS passing for abstract-wc-shipping-method.php 2018-03-05 15:08:55 +02:00
Gerhard Potgieter f56c6366c1 PHPCS passing for abstract-wc-settings-api.php 2018-03-05 15:01:21 +02:00
Gerhard Potgieter d968621afb PHPCS passing for abstract-wc-session.php 2018-03-05 15:00:52 +02:00
Gerhard Potgieter ba1e7d1e99 PHPCS passing for abstract-wc-rest-shipping-zones-controller.php 2018-03-05 14:59:35 +02:00
Gerhard Potgieter 74ec8a4a14 PHPCS passing for abstract-wc-rest-posts-controller.php 2018-03-05 14:58:28 +02:00
Gerhard Potgieter fb3afa672d PHPCS passing for abstract-wc-rest-crud-controller.php 2018-03-05 14:55:17 +02:00
Gerhard Potgieter 5dcfeac7c1 PHPCS passing abstract-wc-rest-controller.php 2018-03-05 14:52:49 +02:00
Gerhard Potgieter 7f2362aab1 PHPCS passing abstract-wc-product.php 2018-03-05 14:46:34 +02:00
Gerhard Potgieter cb87a0ee54 PHPCS passing for abstract-wc-payment-token.php 2018-03-05 13:54:54 +02:00
Gerhard Potgieter 940ab475d4 PHPCS passing for abstract-wc-payment-gateway.php 2018-03-05 13:48:54 +02:00
Gerhard Potgieter 440358a4f2 PHPCS passing for abstract-wc-order.php 2018-03-05 13:41:04 +02:00
Gerhard Potgieter 9fd043eaea PHPCS passing for abstract-wc-object-query.php 2018-03-05 13:39:05 +02:00
Gerhard Potgieter b3c998b0cd PHPCS passing for abstract-wc-long-handler 2018-03-05 13:36:56 +02:00
Gerhard Potgieter 41958de93d PHPCS passing for abstract-wc-integration.php 2018-03-05 13:34:38 +02:00
Gerhard Potgieter 42978bb031 PHPCS passing for abstract-wc-data.php 2018-03-05 13:29:18 +02:00
Mike Jolley ab9389ec83
Merge pull request #19110 from woocommerce/feature/18056
Remember importer mappings
2018-03-03 17:22:48 +00:00
Mike Jolley 46ab27e4e8
Merge pull request #18820 from alexmacarthur/pii-removal
PII Issue Prevention - Remove user login from reset password link.
2018-03-03 17:19:55 +00:00
Chunkford dce96daa84
Add filter to a coupon's expiry date check
I need the ability (and hopefully others now or in the future) to intercept the expiry date check for a coupon.
This pull request offers that ability.
2018-03-03 11:46:14 +00:00
Mike Jolley a869f896bf
Merge pull request #19166 from woocommerce/tweak/coupon-price-ui
Improve UI on Coupon amount in cart
2018-03-02 19:26:48 +00:00
Claudio Sanches d822076115
Merge pull request #19201 from danielshields/patch-1
Fix the PayPal API URL
2018-03-02 16:02:48 -03:00
Mike Jolley 57cfa72d99 Only append tax label if taxes are enabled 2018-03-02 16:22:54 +00:00
Claudiu Lodromanean 079edc9ca6
Merge pull request #19204 from woocommerce/update/prodshortcod
New shortcode features for products block
2018-03-01 15:05:04 -08:00
claudiulodro 383317c256 Layered nav support on unsupported theme archives 2018-03-01 11:28:00 -08:00
Claudiu Lodromanean 62a823dadf
Merge pull request #19171 from woocommerce/update/19145
Improve store notice customizer handling
2018-03-01 10:54:11 -08:00
claudiulodro 8cf36aa0d2 New shortcode features for products block 2018-03-01 10:05:22 -08:00
danielshields e2da7fd277
Fix the PayPal API URL
Assuming they changed the section title, as the permalink is now "create" vs "creating"
2018-03-01 12:30:38 -05:00
Paul Dechov 08e8ca7823 Activate plugins during installation process even if directory doesn't match slug 2018-03-01 11:50:54 -05:00
Mike Jolley b4579bb502 Merge branch 'master' into update/16912 2018-03-01 16:38:04 +00:00
Mike Jolley 3d4b1e6d4c Return new logger instance if class changes. 2018-03-01 16:24:53 +00:00
Mike Jolley 21d7dbc612 Merge branch 'master' into update/17252 2018-03-01 15:58:17 +00:00
Caleb Burks 0568470bb8 Only show T&C's notice if there is a valid T&Cs page 2018-02-28 21:58:34 -05:00
Claudio Sanches ffd7915d49 Make sure that option is an array 2018-02-28 16:46:52 -03:00
Claudio Sanches de804dbe7b Make sure that user saved mapping preferences are applied after all filters 2018-02-28 16:40:26 -03:00
Claudio Sanches 3ca1139cf9 Sanitize mapping before save 2018-02-28 16:36:35 -03:00
Claudio Sanches 8500000da7 Updated user option key 2018-02-28 16:04:20 -03:00
Rodrigo Primo 56cb3d2d4f Check if download ID is valid before running query 2018-02-28 13:41:11 -03:00
Rodrigo Primo 0f79567d06 Merge branch 'master' into update/improve-get-downloads 2018-02-28 13:34:11 -03:00
Mike Jolley b44183b4cb Move jquery ui styles to assets 2018-02-28 13:02:41 +00:00
Boro Sitnikovski 1a1f62c952 Separate coupon custom logic into its own method 2018-02-28 13:42:52 +01:00
Boro Sitnikovski b2e9fbb22d Add filter to allow post processing on custom coupons 2018-02-28 13:41:18 +01:00
Mike Jolley 74f9e16ac3 Unbind on display 2018-02-28 11:58:04 +00:00
Boro Sitnikovski 328dad7659 Improve UI on Coupon amount in cart 2018-02-28 09:47:59 +01:00
Frédéric Demarle ac199889f2 Fix fatal error in PHP < 5.5 2018-02-27 20:55:40 +01:00
Tiago Noronha 28b99e6970 Prevent full refresh when editing store notice and checkbox is off 2018-02-27 19:52:31 +00:00
claudiulodro 3e114799ca Set is_tax true when on unsupported theme 2018-02-27 11:45:56 -08:00
Claudiu Lodromanean 5346f63abc
Merge pull request #19159 from woocommerce/fix/19124
Use subtotal for discounts in admin/orders
2018-02-27 11:27:01 -08:00
Mike Jolley 728e6dc58d
Merge pull request #19109 from woocommerce/fix/19083
wc_get_price_excluding_tax handling for woocommerce_adjust_non_base_location_prices
2018-02-27 19:20:20 +00:00
Mike Jolley de5b60a7e6
Merge pull request #18817 from shivapoudel/feature/screen-option
Add support screen options for core list tables
2018-02-27 19:19:45 +00:00
Mike Jolley f28a3dd35d
Merge pull request #19156 from woocommerce/fix/19120
Only trim strings in multiselect display options
2018-02-27 19:18:09 +00:00
Mike Jolley c2c0aeefb8
Merge pull request #19002 from helgatheviking/exclude-products-from-coupon-validation
Exclude products from coupon validation
2018-02-27 19:14:22 +00:00
Mike Jolley e4403b87ea
Merge pull request #19091 from woocommerce/update/18852
Include priceSpecification with valueAddedTaxIncluded
2018-02-27 19:13:10 +00:00
Mike Jolley c389f4017e Merge branch 'master' into update/19136 2018-02-27 19:11:52 +00:00
Mike Jolley f3ab50d962
Merge pull request #19135 from Chouby/ajax_wp_die
Replace exit by calls to wp_die() in ajax responses
2018-02-27 19:09:41 +00:00
Mike Jolley a6431c86d3 Use subtotals when applying discount logic to match cart. 2018-02-27 18:48:05 +00:00
Mike Jolley cceec55714 Fix error in unit tests due to missing object check 2018-02-27 16:32:59 +00:00
claudiulodro c8f418fd45 Only trim strings in multiselect display options 2018-02-27 07:50:33 -08:00
Mike Jolley 00ed016bf1 Implement selective_refresh for store notice 2018-02-27 12:46:36 +00:00
Mike Jolley e1beda3eb0 Use relative scheme for ajax endpoint 2018-02-26 18:51:46 +00:00
Mike Jolley fc9fe996d8 Add profile link to order screen 2018-02-26 18:19:03 +00:00
Frédéric Demarle b2f59b0da5 Replace exit by calls to wp_die() in ajax responses 2018-02-26 18:27:25 +01:00
Mike Jolley 0784e9ede6
Merge pull request #19126 from obiPlabon/master
Fixed #19125 - added spinner markup
2018-02-26 16:08:01 +00:00
Caleb Burks 828141c407 CLI ID argument should come after parent ID args 2018-02-25 14:59:23 -05:00
Caleb Burks e365d1e01a Use correct arg when making rest request in cli 2018-02-25 14:18:22 -05:00
obiPlabon 5b8721519b Fixed #19125 - added spinner markup 2018-02-25 17:33:29 +06:00
Hardip Parmar 632da6779e fixed spelling for calculate. 2018-02-24 16:53:27 +05:30
Kathy Darling d494daf3cd Merge branch 'master' of github.com:woocommerce/woocommerce into exclude-products-from-coupon-validation 2018-02-23 22:09:06 -06:00
Claudio Sanches 9db8a434b5
Merge pull request #18082 from WPprodigy/remember-importer-mappings
Remember importer mappings
2018-02-23 11:05:24 -03:00
Mike Jolley 39c6c9c72c wc_get_price_excluding_tax handling for woocommerce_adjust_non_base_location_prices 2018-02-23 11:53:05 +00:00
Mike Jolley dc4212cc15
Merge pull request #19098 from woocommerce/fix/19095-coupon-empty-cost
Ensure coupon amount is not empty
2018-02-23 10:58:29 +00:00
Mike Jolley bb497f213d
Merge pull request #19104 from woocommerce/fix/19102-exlude-page-1-from-shop-page-content-check
Include page 1 on shop archive content check
2018-02-23 10:56:27 +00:00
Gerhard Potgieter c8642f0da7 PHPCS fixes 2018-02-23 10:16:22 +02:00
Gerhard Potgieter c13dee6fb3 Add page 1 to check when displaying shop page content. 2018-02-23 10:14:59 +02:00
Shiva Poudel e4bcc1d285 Rename the prefix for per page options 2018-02-23 10:03:56 +05:45