Peter Fabian
6727fdba62
Updated constants' names to better reflect their usage.
2019-07-02 18:44:43 +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
Timmy Crawford
01f1749684
Change version compare.
2019-05-17 13:53:38 -07:00
Timmy Crawford
43cd7dc04c
Add wc-admin notice.
2019-05-17 13:53:37 -07:00
Mike Jolley
91084f3e28
Add todo for legacy shipping notice
2019-04-10 11:23:04 +01:00
Mike Jolley
e6c60dd6c2
Show notice when regeneration is taking place with link to AS
2019-03-13 12:25:20 +00:00
Mike Jolley
b4cfef95a2
Stop calling notice file
2019-03-13 10:40:38 +00:00
Mike Jolley
6f4eeef2fe
Move deprecated notices to bottom of class and add deprecated tag
2019-03-13 10:37:30 +00:00
Mike Jolley
638812cdd3
Merge pull request #22904 from woocommerce/update/20577
...
Updates - Docs and ActionScheduler implementation
2019-03-12 13:21:48 +00:00
Timmy Crawford
0ebefa53fd
Remove Blocks Plugin Notif
2019-03-08 11:09:15 -08:00
Mike Jolley
b903086251
Fix callbacks and remove logging
2019-02-28 11:52:56 +00:00
Mike Jolley
d990b5192f
Switch to action scheduler
2019-02-28 11:11:08 +00:00
Mike Jolley
a89caf0b89
Add wrapper for is_plugin_active
2019-02-27 15:25:27 +00:00
Mike Jolley
34dbf96847
Merge pull request #22410 from woocommerce/remove/simplify-commerce
...
Remove simplify commerce gateway from core
2019-02-04 11:23:23 +00:00
Refael Iliaguyev
8f0f22c11b
Fix ssl check in case shop page does not exists.
2019-01-23 16:08:13 +02:00
Mike Jolley
9d381d456b
Remove simplify commerce gateway
2019-01-10 12:01:27 +00:00
Gerhard
f2230da7d2
Use get_bloginfo( 'version' ) instead of wp_version global
2018-11-15 15:27:58 +02:00
Gerhard
341c0a8277
Add wp 5.0 checks to wootenberg notice checks.
2018-11-15 15:26:19 +02:00
Ron Rennick
427d7df7fb
Introduce WC_Admin_Notices::is_ssl(), add SSL check to dashboard SSL notice
2018-10-29 11:10:09 -03:00
claudiulodro
1890ef788d
Persist wootenberg notice dismissal
2018-06-18 10:54:01 -07:00
claudiulodro
79551e9843
Wootenberg JITM
2018-06-13 11:36:36 -07:00
Mike Jolley
fc8e7be3ab
Only show notices on specific screens
2018-04-18 14:08:31 +01:00
Claudio Sanches
5dda3496fc
Display message once per user
2018-04-17 18:26:08 -03:00
Claudio Sanches
b270bd2c5b
Fixed PHPCS violations
2018-04-17 17:44:11 -03:00
Claudio Sanches
8350f88f57
Introduced message about secure connection
2018-04-17 17:39:18 -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
e39b6950a8
Notice when regeneration is happening
2018-02-13 12:02:24 +00:00
Caleb Burks
c21cc2e8fe
Replace “Cheatin’ uh?” with friendlier messages
2018-02-07 17:01:12 -05:00
Mike Jolley
db73de335a
Add notice for moved settings
2018-01-24 17:18:28 +00:00
claudiulodro
a3d0d71cdf
Deprecate theme notice
2018-01-10 09:52:52 -08:00
claudiulodro
d87497962b
Revert "Remove unsupported theme notice"
...
This reverts commit aad3792817
.
2018-01-10 09:45:16 -08:00
claudiulodro
aad3792817
Remove unsupported theme notice
2018-01-09 13:51:12 -08:00
Mike Jolley
6701917e5a
Remove need for wc_get_core_supported_themes
2017-11-07 12:17:03 +00:00
Umangvaghela
10fe92cfc1
Fix-minor-changes
2017-10-16 16:33:12 +05:30
claudiulodro
0444cdef3c
Initial notice implementation
2017-07-11 11:59:39 -07:00
Refael Iliaguyev
40ef76c12b
Add rtl support for activation.css
2017-07-06 09:03:15 +03:00
Rasmus Bengtsson
6a7fc8650f
Remove unused local variables
2017-05-15 12:06:52 +02:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
82f3cc221e
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis
2016-08-27 07:23:02 +03:00
Mike Jolley
b3dbd93df5
Updating if do_update_woocommerce is set.
2016-06-13 18:15:07 +01:00
Mike Jolley
34f2bd683e
Prevent update notice appearing twice
...
@claudiosmweb
2016-06-13 12:44:19 +01:00
Shiva Poudel
00cc3711ac
Minor tweaks and JSHint ignore for update notice script
2016-06-06 23:05:10 +05:45
Mike Jolley
d4d6f3181c
Best practice tweaks
2016-06-06 17:24:31 +01:00
Mike Jolley
fa0422a7f0
Fix activation error due to countries class
2016-06-03 12:28:27 +01:00
Mike Jolley
b3844257a0
Use wc_get_shipping_method_count helper
2016-05-25 12:05:33 +01:00
Mike Jolley
dce5c312e5
Hide simplify notice outside of US
2016-05-16 11:30:20 +01:00
Mike Jolley
bba4bab8e1
Save notices during shutdown
2016-05-11 14:22:06 +01:00
Mike Jolley
a8bd4bc6e1
Updating/updated notices
2016-05-11 12:43:35 +01:00
Mike Jolley
8e0e9a0cc2
Deprecate Simplify in favour of feature plugin
2016-04-19 13:14:13 +01:00