Claudio Sanches
da99bc8ca0
Merge branch 'master' into feature/feature-plugin-packages
2019-07-08 14:33:21 -03:00
Rodrigo Primo
4712f75f67
Merge branch 'master' into fix/23508
2019-07-04 16:13:01 -03:00
Rodrigo Primo
18813662dd
Fix link to documentation about WordPress and PHP minimum requirements
2019-07-02 09:19:39 -03: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
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
a0a58cfb15
update from master
2019-06-26 15:26:47 +01:00
Claudio Sanches
c04f7b79f9
Merge pull request #23919 from woocommerce/fix/codex-memory-limit-link
...
Updated documentation about increasing memory allocated to php
2019-06-24 12:12:11 -03:00
Mike Jolley
3a1c401a5b
update status report
2019-06-21 13:59:40 +01:00
Mike Jolley
5b105d0c7f
Init the API and add to status report
2019-06-21 13:40:53 +01:00
Claudio Sanches
3ce6acec74
Updated outdated codex URLs
2019-06-12 19:31:01 -03:00
Claudio Sanches
5624af43a7
Updated docs about increasing memory allocated to php
2019-06-12 19:04:24 -03:00
Timmy Crawford
43cd7dc04c
Add wc-admin notice.
2019-05-17 13:53:37 -07:00
Gerhard Potgieter
902cc1f0b0
Merge branch 'master' into fix/23606
2019-05-10 11:12:54 +02:00
Gerhard
84b75c31ad
Three equals
2019-05-09 12:57:25 +02:00
Gerhard
b1e2a0119a
Fix system status connected to woocommerce.com status
2019-05-06 10:11:59 +02:00
Rodrigo Primo
00128fec58
Fix dismiss button in two WC admin notices
...
The dismiss button in the WC admin notices `legacy_shipping` and `no_shipping_methods` was not fully clickable due to a custom CSS applied to them. This custom CSS was used to add a background image to those notices. More specifically, the problem was caused by the use of `position: relative` applied to `<p>` elements. I couldn't find an easy way to fix this problem keeping the custom background image, so I opted to remove it to make the design of all notices identical (besides the background image, the custom CSS also added a few other differences to those to notices like the font size of the notice title).
2019-04-25 14:19:35 -03:00
Rodrigo Primo
5c1936bfdd
PHPCS fixes
2019-04-25 14:12:45 -03:00
Mike Jolley
1efcecddc5
Merge pull request #23469 from dfeuster/master
...
corrected anchor href from old codex to new location
2019-04-24 16:11:32 +01:00
Daniel Feuster
dfe8ac43bf
corrected anchor href from old codex to new location
2019-04-23 16:54:44 -05:00
Mike Jolley
6c36c71a65
Remove red styling
2019-04-23 12:10:07 +01:00
Mike Jolley
6589c04dab
Merge branch 'update/update-notices' of https://github.com/woocommerce/woocommerce into update/update-notices
2019-04-23 12:01:18 +01:00
Mike Jolley
3cb3d5df4e
Prevent tab causing extra white space
2019-04-23 12:01:13 +01:00
Rodrigo Primo
ac70d1e9b2
Fix copy and paste error in code documentation
2019-04-22 11:43:09 -03:00
Mike Jolley
7ef1fd5ea6
More useful update notices
2019-04-18 20:06:17 +01:00
Mike Jolley
c5defa6a1e
Add engine to system status
2019-03-21 14:39:33 +00:00
Gerhard
a7571c71c1
Fix typo in lookup table notice markup
2019-03-18 10:11:05 +02:00
Mike Jolley
337b6cdc60
Link had wrong styling - it does not dismiss
2019-03-13 17:07:33 +00: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
54fac746b3
Remove unused notice file
2019-03-13 10:40:11 +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
598ac86e95
Tests
2019-03-07 11:08:29 +00:00
Mike Jolley
89a4eba859
update from 22951
2019-03-07 10:58:14 +00:00
Mike Jolley
56fbcfd8af
Include inactive plugins in system status
2019-03-06 18:29:44 +00:00
Mike Jolley
99455cfe34
update text
2019-03-06 12:00:54 +00:00
Mike Jolley
71afa5e590
Update notice wording
2019-02-28 11:16:09 +00:00
Mike Jolley
d59b1c39d7
Remove force link - it can be done in AS
2019-02-28 11:15:58 +00:00
Mike Jolley
f81791dab9
Update notice text + docs links
2019-02-28 10:45:38 +00:00
Gerhard
5cfa6fc3db
PHPCS fixes
2019-02-27 15:24:50 +02:00
Gerhard
497d082b03
Refine Dropin and MU Plugin report functionality a bit. Added option to show if connected to WooCommerce.com.
2019-02-27 15:19:12 +02:00
Gerhard
bf57a037c6
First go at adding dropins and mu plugins to system status report
2019-02-27 14:27:53 +02:00
Mike Jolley
c47a6b9172
Tools and status require rest API init
2019-02-04 16:04:25 +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
Job
185041da87
Removed title case
...
As requested here by https://github.com/woocommerce/woocommerce/pull/22584#pullrequestreview-197707971
2019-01-29 20:40:59 +01:00
Job
2174937f4f
Translatable
2019-01-28 12:28:48 +01:00
Job
b0aa198d4c
Updated system status report
...
Two changes:
* Followed the WP core order of mentioning wordpress URL and site URL
* Followed the WP core naming of these two URLs - confusingly the home URL in core is described be "Site Address ()"
![http://cld.wthms.co/xo5xtL ](http://cld.wthms.co/xo5xtL+ )
Link to image here: http://cld.wthms.co/xo5xtL .
2019-01-28 12:24:57 +01:00
Gerhard
6b211ab25b
Add increase and decrease stock qty option to bulk product edit.
2019-01-16 11:22:11 +02:00
Mike Jolley
9d381d456b
Remove simplify commerce gateway
2019-01-10 12:01:27 +00:00
claudiulodro
180ead91e4
Update notice wording for wp 5.0
2018-11-15 10:19:51 -08:00
claudiulodro
87b81c94ae
Better way of doing it
2018-10-11 13:31:34 -07:00
Gerhard Potgieter
b9a28b7ec2
Allow for multiple category selections when exporting.
2018-08-07 16:58:39 +02:00
Gerhard Potgieter
865f724187
Add category filter to product export functionality.
2018-07-23 11:59:01 +02:00
Claudiu Lodromanean
af98ef66e7
Merge pull request #20730 from woocommerce/fix/20716
...
Fix log file deletion
2018-07-09 11:35:45 -07:00
Gerhard Potgieter
a4e3283b20
Update outdated templates notice
2018-07-09 15:10:49 +02:00
Gerhard Potgieter
1fdcf2a238
Fix log file deletion functionality.
2018-07-09 13:01:23 +02:00
Liam McArthur
0ddb61273c
Disable autocomplete from date inputs
...
Disabling autocomplete from these date inputs prevents browser autocomplete from overlaying datepicker.
2018-07-02 15:55:26 +01:00
GlennMartin1
fdbefd436a
fix typo
...
change: "Active" to "Activate"
2018-06-22 15:29:14 -04:00
claudiulodro
7148f8da2d
Install/activate the plugin from the notice
2018-06-18 10:42:52 -07:00
claudiulodro
79551e9843
Wootenberg JITM
2018-06-13 11:36:36 -07:00
Rodrigo Primo
fc5aef8478
Add nonce to force update WC database URL
...
Doing this to check if the user has intention to perform a WC database update before starting the process.
2018-06-07 09:55:47 -03:00
Rodrigo Primo
467bd73ea9
phpcs fixes
2018-06-07 09:45:23 -03:00
Rodrigo Primo
a200686005
Add nonce to update WC database URL
...
Doing this to check if the user has intention to perform a WC database update before starting the process.
2018-06-07 09:45:18 -03:00
Rodrigo Primo
860e3e6d93
phpcs fixes
2018-06-07 08:57:57 -03:00
Mike Jolley
2e56d79628
Merge pull request #20246 from boodaah/master
...
Add anchor tag example to email template preview
2018-05-30 14:03:30 +01:00
Mike Jolley
bcc1a350ce
Remove red styling for PHP notice if using > 5.6
2018-05-29 15:52:01 +01:00
boodaah
14f090f82e
Add anchor tag example to email template preview
2018-05-25 14:41:20 -04:00
Mike Jolley
0bfd675238
Wrapper function to get full mysql version string with mariadb handling
2018-05-25 11:15:30 +01:00
Jason Conroy
e8e438704b
Fix incorrectly closed table row
...
Introduced with 23b69eba53 (diff-1b33d607bfa554752b46fad3269637deR806)
2018-05-16 11:36:02 +10:00
Mike Jolley
8531b2677e
Update quick edit logic to handle external products
2018-05-08 16:58:51 +01:00
GlennMartin1
256a4d96e2
grammar fix...
2018-04-18 09:11:32 -04:00
Mike Jolley
5455e7049b
Update notice text
2018-04-18 13:52:59 +01:00
Claudio Sanches
c4d099fe87
Included missing doc link
2018-04-17 18:10:36 -03:00
Claudio Sanches
8350f88f57
Introduced message about secure connection
2018-04-17 17:39:18 -03:00
Mike Jolley
78f96fcd40
Hook mapping/bw compat
2018-04-16 14:27:03 +01:00
Mike Jolley
b88289e5c1
GeoIP version check in status report
2018-03-29 16:44:45 +01:00
Mike Jolley
7ec6917475
PHP version checks to recommend 7.2
2018-03-29 16:38:44 +01:00
Mike Jolley
36aee04abb
Include WordPress version check and resolve phpcs issues
2018-03-29 16:08:36 +01:00
Claudio Sanches
21dc6d28cf
Merge branch 'master' into feature/18477
2018-03-21 14:31:58 -03:00
Mike Jolley
cb3c4849b4
Merge branch 'master' into fix/19175
2018-03-13 18:14:36 +00:00
Claudio Sanches
39c702403a
Updated system status message about MaxMind GeoIP database
2018-03-13 14:54:56 -03:00
Mike Jolley
69b09af0f0
Merge branch 'master' into fix/19175
2018-03-07 10:33:24 +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
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
418ee11839
This tracking notice is not used.
2018-03-01 17:01:55 +00:00
Mike Jolley
5feed3e0cc
Merge branch 'master' into update/add-ext-object-cache-to-system-status
2018-02-19 14:39:31 +00:00
Mike Jolley
1631c8a09f
Cancel button text
2018-02-13 19:21:52 +00:00
Mike Jolley
e39b6950a8
Notice when regeneration is happening
2018-02-13 12:02:24 +00:00
Rodrigo Primo
2feacfb47a
Display whether or not external object cache is enabled
...
This commit adds a new line to the section "WordPress environment" of the system status page to indicate whether or not WP external object cache is enabled.
2018-01-29 15:56:01 -02:00
Rodrigo Primo
75fc594013
Manually fix coding standard violations that can't be fixed with phpcbf
2018-01-29 15:55:43 -02:00
Rodrigo Primo
a15ecc1601
Automatically fix coding standard violations using phpcbf
2018-01-29 15:53:54 -02:00
Mike Jolley
d13dfa65c6
Remove unused code
...
Closes #18390
2018-01-09 09:33:16 +00:00
Claudiu Lodromanean
4f94d9dbbc
Merge pull request #18247 from AdamQuadmon/wc-exporter-custom-filters
...
Add product export row action hook
2017-12-21 06:02:56 -08:00
Luciano Amodio
865efa3736
Add product export row action hook
...
having this hook is possible to actually use the woocommerce_product_export_product_query_args filter
```
add_action('woocommerce_product_export_row', 'export_custom_product');
add_filter( 'woocommerce_product_export_product_query_args', 'export_product_query_args');
// https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query
add_filter( 'woocommerce_product_data_store_cpt_get_products_query', 'handle_custom_query_var', 10, 2 );
function export_custom_product() {
$args = [
'show_option_all' => 'Custom',
'taxonomy' => 'pa_custom',
'name' => 'custom',
'orderby' => 'name',
'order' => 'ASC',
'selected' => isset($_REQUEST['custom']) ? $_REQUEST['custom'] : '',
'show_count' => true,
'hide_empty' => true,
'menu_order' => false
];
?>
<tr>
<th scope="row">
<label for="custom">Filter by Custom</label>
</th>
<td>
<?php wp_dropdown_categories($args); ?>
</td>
</tr>
<?php
}
function export_product_query_args($args) {
$args['custom'] = 'default';
if ( ! empty( $_POST['form'] ) ) {
$values = explode('=', $_POST['form']);
if('custom' === $values[0]) {
$args['custom'] = wp_unslash( $values[1] );
}
}
return $args;
}
function handle_custom_query_var( $query, $query_vars ) {
if ( ! empty( $query_vars['custom'] ) ) {
$query['tax_query'][] = array(
'taxonomy' => 'pa_ custom',
'field' => 'id',
'terms' => esc_attr( $query_vars['custom'] )
);
}
return $query;
}
```
2017-12-20 20:13:10 +01:00
Claudio Sanches
f40f3291f8
Fixed file log dates and implement better date formatting
...
Closes #18232
2017-12-19 15:38:50 -02:00
Mike Jolley
d0db71c6c2
Flex grid for extension list
2017-12-08 13:23:08 +00:00
Jonathan Belcher
3bb55107e8
Fix placeholder comment
2017-12-07 12:04:25 -05:00
Jonathan Belcher
b42004f7b3
Fix escaping
2017-12-06 16:48:30 -05:00
Jonathan Belcher
b5c1025621
Fixes from code review
2017-12-06 12:02:09 -05:00
Jonathan Belcher
f05ed543fa
Fix css and add search query header
2017-12-05 11:15:09 -05:00
Jonathan Belcher
2c12dcfacd
Merge Commit
2017-12-05 10:16:28 -05:00