Commit Graph

32363 Commits

Author SHA1 Message Date
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
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 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
Renovate Bot e84a524e87
Update dependency husky to v2.6.0 2019-06-26 13:39:20 +00:00
Mike Jolley 7a79085ea8
Merge pull request #23979 from woocommerce/update/direct-rest-api-usage
Update direct usage of REST API controllers
2019-06-26 14:18:27 +01:00
Mike Jolley 636bea1002
Merge pull request #23978 from woocommerce/update/include-packages
Include blocks, rest-api, and jetpack-autoloader packages
2019-06-26 13:14:40 +01:00
Mike Jolley b0d043752d
Merge pull request #23977 from woocommerce/remove/gutenberg-blocks
Remove existing Gutenberg Blocks code
2019-06-26 11:52:40 +01:00
Mike Jolley 2d191c83f8
Merge pull request #23959 from woocommerce/remove/core-rest-api
Remove core REST API classes
2019-06-26 11:50:55 +01:00
Mike Jolley cdfb684823
Merge pull request #23958 from woocommerce/update/legacy-api-location
Move legacy API to `/legacy/` directory
2019-06-26 11:48:43 +01:00
Mike Jolley cae7422b98 git mv legacy api 2019-06-26 11:47:08 +01:00
Mike Jolley 10b0aae09e Revert "Move legacy API files from /api/ to /legacy/api"
This reverts commit 00a8ef5d4d.
2019-06-26 11:42:36 +01:00
Sergey Biryukov 9b8a29ac9d
Correct plural forms usage in loop/result-count.php
Fixes #24004.
2019-06-26 05:23:15 +03:00
Claudio Sanches ea63bb6c7b Removed ApiGen build process and requirements 2019-06-25 22:36:03 -03:00
Claudio Sanches d6bd82865c Removed ApiGen files 2019-06-25 22:29:03 -03:00
Mike Jolley 9a8e8dacff Add integration tests 2019-06-25 15:57:44 +01:00