Commit Graph

36166 Commits

Author SHA1 Message Date
Rodrigo Primo f1df27bbc1
Merge pull request #24042 from woocommerce/renovate/chromedriver-75.x
Update dependency chromedriver to v75.0.1
2019-07-02 14:03:58 -03:00
Rodrigo Primo 587867f46f
Merge pull request #23983 from woocommerce/renovate/eslint-6.x
Update dependency eslint to v6
2019-07-02 14:02:55 -03:00
Rodrigo Primo 7e79f7027d
Merge pull request #24055 from woocommerce/fix/update-min-version-const-names
Updated constants' names to better reflect their usage.
2019-07-02 13:59:26 -03:00
Peter Fabian 6727fdba62 Updated constants' names to better reflect their usage. 2019-07-02 18:44:43 +02:00
Claudio Sanches cb12b30c85 Fixed @since tag version 2019-07-02 12:51:36 -03:00
Rodrigo Primo 737f6af5e8 Introduce file type check for tax rate importer 2019-07-02 10:44:21 -03:00
Rodrigo Primo 7324e480e7 Fix phpcs violations 2019-07-02 10:43:52 -03:00
Rodrigo Primo cabf9de71a Added nonce check to CSV importer actions 2019-07-02 10:37:46 -03:00
Rodrigo Primo 18813662dd Fix link to documentation about WordPress and PHP minimum requirements 2019-07-02 09:19:39 -03:00
Renovate Bot 8ee9371f00
Update dependency lint-staged to v9.0.1 2019-07-02 11:07:44 +00:00
Gerhard f74c32c17b Add return 2019-07-02 10:25:32 +02:00
Gerhard e08279d190 Add support for namespaced Jetpack tracks_get_identity from Jetpack 7.5 2019-07-02 10:20:57 +02:00
Claudio Sanches 5c1966321f
Merge pull request #24043 from woocommerce/renovate/lint-staged-9.x
Update dependency lint-staged to v9
2019-07-01 16:53:11 -03:00
Claudio Sanches 3efd4312f3
Merge pull request #24044 from woocommerce/renovate/husky-3.x
Update dependency husky to v3
2019-07-01 16:53:03 -03:00
Renovate Bot 4d2ffbecbe
Update dependency husky to v3 2019-07-01 19:31:52 +00:00
Renovate Bot 55bfd0a1a8
Update dependency lint-staged to v9 2019-07-01 18:21:39 +00:00
Renovate Bot 272e5370a8
Update dependency chromedriver to v75.0.1 2019-07-01 16:17:28 +00:00
Andy Mardell 821d387c19 Add full-stop to inline comment 2019-07-01 08:31:10 +01:00
Rodrigo Primo b08fd05a7d Fix: check if DB_NAME is defined before using it
WooCommerce relies on the constant DB_NAME to display information about the database tables in the system status page. The problem is that this constant is not always defined (e.g., when the plugin HyperDB is used to replace the standard wpdb class). When that is the case, WooCommerce will incorrectly say that its core tables are missing and the following PHP warning will be generated:

```
Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP)
wp-content/plugins/woocommerce/includes/api/v2/class-wc-rest-system-status-v2-controller.php:708
```

To fix this, this commit checks to see if DB_NAME is defined before using it. When the constant is not set, WooCommerce will display the following message to the users instead of the list of supposedly missing tables:

```
Database information: Unable to retrieve database information. Usually, this is not a problem, and it only means that your install is using a class that replaces the WordPress database class (e.g., HyperDB) and WooCommerce is unable to get database information.
```
2019-06-28 17:57:54 -03:00
Rodrigo Primo 356ad18826
Merge pull request #24003 from woocommerce/remove/apigen
Remove ApiGen
2019-06-28 11:23:36 -03:00
Claudio Sanches 4b269b08aa
Merge pull request #23924 from woocommerce/update/php-minimum-requirements
Set PHP minimum requirement to 5.6
2019-06-28 10:57:38 -03:00
Claudio Sanches 275ef4caac
Merge branch 'master' into update/php-minimum-requirements 2019-06-28 10:56:51 -03:00
Rodrigo Primo bb78174c33 Remove references to apigen from configuration files
Commit d6bd82865c removed apigen from
WooCommerce core repository as we are moving it to its own repository (https://github.com/woocommerce/woocommerce-api-docs). This
commit removes the apigen from configuration files. In most cases, it is
just removing the apigen directory from the exclude list of things like
PHPCS and Code Climate.
2019-06-28 10:20:30 -03:00
Jeff Stieler 4bcc381abc
Merge pull request #24028 from woocommerce/fix/tracks-site-id
Tracks: fix blog ID retrieval from Jetpack options.
2019-06-27 15:18:05 -06:00
Jeff Stieler 3bf58f2d48 Tracks: fix blog ID retrieval from Jetpack options.
JavaScripty syntax resulted in boolean values.
2019-06-27 14:15:17 -06:00
Boro Sitnikovski a7f5d87f5e DB received `ENGINE` instead of `engine`, so PHP notices appear 2019-06-27 17:34:08 +02:00
Rodrigo Primo 68f5ccabc1
Merge pull request #23811 from woocommerce/feature/23807
Allow enforce password strength meter on checkout
2019-06-27 11:39:00 -03:00
Rodrigo Primo f3b0d755fd Correct singular form usage in class-wc-admin-report.php
For more information see https://github.com/woocommerce/woocommerce/issues/24004
2019-06-27 11:03:35 -03:00
Andy Mardell f2152e665e Allow notice type changes when updating cart 2019-06-27 14:54:35 +01:00
Rodrigo Primo 3f2cacb1be Use phpcbf to fix phpcs violations in class-wc-admin-report.php 2019-06-27 10:48:31 -03:00
Rodrigo Primo 12d03d8d57
Merge pull request #23863 from Jon007/patch-2
Avoid attempting to cache expired sessions
2019-06-27 10:15:39 -03:00
Rodrigo Primo ba64aea195
Merge pull request #24005 from SergeyBiryukov/patch-1
Correct plural forms usage in loop/result-count.php
2019-06-27 10:14:30 -03:00
Peter Fabian 9671810159 Added event to track `Add item(s)` button click. 2019-06-27 13:22:19 +02:00
Peter Fabian 7b03fe62f3 Added event to track `Add fee` button click and Cancel in the prompt. 2019-06-27 13:21:37 +02:00
Peter Fabian 90c0954d21 Renamed add_fee event to added_fee.
Makes it consistent with e.g. coupon addition tracks.
2019-06-27 13:20:03 +02:00
Peter Fabian 7ef4cb637a Fixed spacing issue. 2019-06-27 13:19:24 +02:00
Kris Shannon 3945694e37 Force string comparison for customer_id
In 203dba5 a check against the current user id was introduced.

This check is always failing because of a type mismatch causing an unnecessary insert/update query against the database.
2019-06-27 18:40:39 +10:00
Gerhard Potgieter 698625ce1d WP & PHP Upgrade Notices (#23975)
This commit introduces a banner that notifies and prompts users to upgrade their WordPress and/or PHP if they are outdated and not part of the minimum required versions going into WooCommerce 3.7.

* Add backward compatible function wp_check_php_version for sites running WP version smaller than 5.1

* Refactor some messaging, move widget to top of WC dashboard widgets, add buttons linking out to WP pages with instructions.

* Add missing variables for adding nag class

* Add styling to dashboard widget

* Rework css to use exclamation instead

* Clean up widget, make sure no widget is registered when dismissed. Add banner that links to widget and make it dismissable.

* Update constant to reflect minimum requirements.

* Don't show banner. Fix undefined variable.

* Remove dashboard widget

* Update banner link to docs site

* Add link to docs page where instructions live for updating

* Change button text

* Add UTM params to docs link

* Moved the msg logic from template to php file.

* Bail out early when PHP and WP versions are ok.

* Added missing translation functiog

* Extracted notice function from reset_admin_notices.

To follow suit with other similar functions in the file.

* Synchronize fetching of WP version.

* Removed unused functions.

* Corrected indent.

* Reduce number of variables and fixed coding standards

* Updated wording of the notice.
2019-06-26 14:09:20 -03:00
Mike Jolley 3b974da08f Update readme and contributing docs 2019-06-26 17:20:47 +01:00
Mike Jolley ddc8ccf104 Fix travis config 2019-06-26 17:02:31 +01:00
Mike Jolley d8273768b5 Merge branch 'master' into feature/feature-plugin-packages 2019-06-26 17:00:06 +01:00
Mike Jolley 26391f3fb6 composer install for travis 2019-06-26 16:25:16 +01:00
Claudio Sanches c4df5c9968
Merge pull request #24011 from woocommerce/renovate/husky-2.x
Update dependency husky to v2.6.0
2019-06-26 12:16:18 -03:00
Mike Jolley 1d0bd12a46 Moved hook like in master v3 2019-06-26 15:29:11 +01:00
Mike Jolley 4ba989a07e Changes from master 2019-06-26 15:27:45 +01:00
Mike Jolley a0a58cfb15 update from master 2019-06-26 15:26:47 +01:00
Mike Jolley ecb23acf47
Merge pull request #24002 from woocommerce/update/revise-package-loader
Revise package loader + introduce tests
2019-06-26 15:19:36 +01:00
Mike Jolley d17cd3358d Add note on unit tests 2019-06-26 15:17:52 +01:00
Mike Jolley 49c293864d
Merge pull request #23989 from woocommerce/add/package-textdomain-replace
Textdomain replacement for packages
2019-06-26 15:12:54 +01:00
Mike Jolley da766789f6
Merge pull request #23981 from woocommerce/update/init-blocks-package
Init the blocks package
2019-06-26 15:11:18 +01:00