Commit Graph

18 Commits

Author SHA1 Message Date
roykho 233f38fa67
Tweak CSS to properly display product reviews in activity widget closes #27532 2020-10-14 14:37:28 -07: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
Gerhard Potgieter 3065eec515 Add a margin to the bestseller widget product title to avoid it overlapping the sparkline when the title is long. 2018-07-19 12:26:45 +02:00
refael iliaguyev fdc410b35c Remove 'bourbon' dependency. It's been replaced with automated prefixing tool. 2017-05-05 16:40:34 +03:00
refael iliaguyev 97efdc1f2c Remove css prefixes in dashboard.scss 2017-05-05 16:32:53 +03:00
Jonathan (JB) Belcher 90c0db873c Cleaned up SCSS files so they lint and made some rules warnings 2016-08-10 09:19:05 -04:00
James Koster 938604a6d2 More appropriate icons in dashboard widget 2016-04-05 14:27:35 -05:00
shivapoudel b496a26ec5 Deprecated the use of box-sizing mixin in bourbon, Closes #7732 2015-03-17 21:36:55 +05:45
Nicola Mustone 70929e71bc fixed dashboard icons 2015-01-15 14:41:42 +01:00
James Koster 9e00709165 separate font styles into separate import 2014-11-18 13:04:28 +00:00
James Koster 81fd75d406 more css formatting. 2014-11-18 13:04:28 +00:00
James Koster 479ce5e73f general css comment formatting and small tweaks. 2014-11-18 13:04:28 +00:00
James Koster 7290f708ec coding standards find/replace fail ^^. closes #6775 2014-11-17 15:45:12 +00:00
James Koster 19fece6a9d split variables into separate file and simplify buttons. #6737 2014-11-13 14:06:51 +00:00
James Koster ba428be0fd dashboard.scss coding standards. #5606 2014-11-13 09:38:39 +00:00
James Koster ab6f05d6b5 bourbon node and import 2014-10-17 18:21:54 +01:00
claudiosmweb 8599376c8b fixed some sass functions 2014-09-22 14:48:26 -03:00
claudiosmweb 5ed619bf66 less to scss #5606 2014-09-22 14:38:53 -03:00