Commit Graph

5403 Commits

Author SHA1 Message Date
Vedanshu Jain 6564847802
Merge pull request #26454 from woocommerce/enhancement/verify-db
Add `verify_base_db` method to check if all base tables are present.
2020-06-05 15:15:39 +05:30
vedanshujain 4fce106f14 Use `_` instead of `-` as per convention. 2020-06-04 20:33:38 +05:30
Claudio Sanches bf042a428d
Merge pull request #25321 from grey-rsi/status_widget_stock_rows
Add filters for status_widget_stock_rows queries
2020-06-03 11:22:20 -03:00
Julia Amosova 479cac4fc0 Add note to Products Importer that TXT files are also supported. 2020-06-02 12:55:06 -04:00
Claudio Sanches 5bf9a83e58
Fixed docblock 2020-06-02 12:17:59 -03:00
Claudio Sanches 2267dcfe7e
Updated since tags 2020-06-02 12:16:54 -03:00
Julia Amosova f929bacfc6 Correct grammar mistake in the help tip of the `Connected to WooCommerce.com` field of SSR. 2020-06-02 11:12:47 -04:00
Sergey Ratushnuy ec91a7c3fc Small fix 2020-06-02 15:05:44 +03:00
Claudio Sanches 6afbed0c14 Fixed coding standards 2020-06-01 23:55:17 -03:00
Claudio Sanches 2acc24f489 Added missing trailing slash 2020-05-26 17:23:37 -03:00
vedanshujain e89ee25f36 Better option names to properly describe their intention.
Additionally, allow an option in `verify_base_tables` to call `create_table` method. This will be useful if someone wants to fix the their database.
2020-05-26 23:26:45 +05:30
Claudio Sanches a240798362 Don't allow redirection while checking for uploads directory 2020-05-25 10:31:58 -03:00
vedanshujain fafa44bde0 Modified notice to also handle when REST API does not have verify tool. 2020-05-22 18:32:03 +05:30
vedanshujain f5afddd4c9 Add support for notices 2020-05-22 18:32:03 +05:30
vedanshujain 3acc03c804 Add `verify_base_db` method to check if all base tables are present.
Optionally, also adds a notice in case all db tables are not present. Returns list of tables.

Note that we only check missing tables and don't care about exact table structure because many time tables are modified by merchants to better suit their needs (indexes, collations etc).
2020-05-22 18:30:11 +05:30
Christopher Allford 93811e0a56
Merge pull request #25753 from woocommerce/fix/25752-wc_get_shipping_method_count-check-enabled
Add is_enabled=1 check in wc_get_shipping_method_count()
2020-05-21 11:44:36 -07:00
Vedanshu Jain 7fb1079137
Merge pull request #26399 from woocommerce/fix/uploads_htaccess
Disable directory listing for redirect download method
2020-05-19 15:56:37 +05:30
Claudio Sanches eea062f9fa
Merge pull request #26519 from woocommerce/fix/csv-import-special-columns
Fixed the case conversion for meta key column mapping in product CSV imports
2020-05-18 11:33:50 -03:00
Peter Fabian e3e72e0423
Merge pull request #26500 from woocommerce/fix/26443
Refresh db update nonce on the Thank you notice
2020-05-18 14:36:13 +02:00
Albert Juhé Lluveras 9a34c4fe75 Update WC shipping settings so no shipping zones banner appears when all are deactivated 2020-05-15 16:32:12 +02:00
Peter Fabian 0934f4a147 Merged should_show_notice and show_reminder and simplified logic.
Removed redundant calls to the same functions as this code runs on each admin pageload.
2020-05-15 10:24:30 +02:00
Peter Fabian 2f141eca77 PHPCS 2020-05-15 09:40:23 +02:00
Peter Fabian 50e386cbe8 Corrected the comment. 2020-05-15 09:26:17 +02:00
Christopher Allford 7bf9c31f64 Adjusted the column name normalization to avoid squashing meta key case sensitivity
Since we were converting the field to lowercase we ended up inserting meta in all lowercase, regardless of what it was in the CSV file. We should only be using the normalized field name when looking at the default columns, and should instead rely on a case-insensitive regex for the special columns.

One thing to note is that we're still defaulting the $headers array to the normalized field, as we don't want to change what is being passed to the filter for unmapped columns.
2020-05-14 21:20:55 -07:00
Claudio Sanches c09a269589
Revert "Fix duplicated custom fields after import products from .csv file" 2020-05-14 14:06:01 -03:00
Peter Fabian 6b11451b88 Replaced repeated code from get_current_notice with the function call. 2020-05-13 16:36:09 +02:00
Peter Fabian a2f985414e Added freshness check also for 'done' notice. 2020-05-13 16:34:23 +02:00
Peter Fabian ed64c0c731 Y U no nonce here? 2020-05-13 16:33:27 +02:00
Peter Fabian eb0879cd1a Extracted actions to the beginning of the function to allow usage in note_up_to_date check. 2020-05-13 16:32:42 +02:00
Peter Fabian a7203ec4d0 Added clean up of duplicate notes, if there are any.
There has been some reports about duplicate notes in the db, so this should remove the duplicates and keep the first one.
2020-05-13 15:00:04 +02:00
Sergey Ratushnuy 9d711a6afa Add filters for status_widget_stock_rows queries 2020-05-13 11:02:44 +03:00
Christopher Allford a34bb53d9c
Merge pull request #26207 from woocommerce/feature/26186
Added notice to check if uploads directoy is public
2020-05-12 11:22:49 -07:00
Claudio Sanches 281459914b
Fixed space in URL 2020-05-12 15:16:36 -03:00
Claudio Sanches 8d6e13952a
New docs URL 2020-05-12 15:16:11 -03:00
Christopher Allford 7f45c56417
Merge pull request #26072 from garretthyder/privacy-policy-update
Privacy policy update
2020-05-12 09:33:28 -07:00
Christopher Allford f41cb52e0c
Merge pull request #26251 from xristos3490/fix-wp-54-styles
[WC4.1 RC] WP 5.3 select2 css fixes broken in WP 5.4
2020-05-12 07:39:10 -07:00
Christopher Allford 278cadea67
Merge pull request #26080 from yoavf/fix/helper-toggle-rtl
Addons/Helper: fix toggles in RTL mode
2020-05-11 19:58:45 -07:00
Christopher Allford 71c49e9ef9
Merge pull request #26296 from abhishek-pokhriyal/fix/incorrect-argument-count
Correct argument count for action hooked on `woocommerce_process_shop…
2020-05-11 19:57:53 -07:00
Christopher Allford 7e2e9b8695
Merge pull request #26167 from woocommerce/fix/25889
Removed  legacy notification to connect with WooCommerce
2020-05-11 19:56:46 -07:00
Christopher Allford 888a5c40cd
Merge pull request #26163 from abhishek-pokhriyal/fix/typo-though
Change "though" to "through"
2020-05-11 19:47:36 -07:00
Christopher Allford 452e53d8af
Merge pull request #25630 from woocommerce/fix-25603
Replace {site_address} by {site_url} for consistency
2020-05-11 19:43:08 -07:00
Christopher Allford f76be96af3
Merge pull request #25517 from grey-rsi/duplicated-custom-fields-after-import
Fix duplicated custom fields after import products from .csv file
2020-05-11 19:41:50 -07:00
Vedanshu Jain 31b648d479
Merge pull request #26358 from woocommerce/fix/26348
Clear only plugin cache if WC header are not present to load with WC headers.
2020-05-11 18:14:39 +05:30
Claudio Sanches 8b4e207f59
Merge pull request #26415 from jasonandmonte/patch-1
Fix variable name typo in class-wc-admin-addons.php file
2020-05-08 13:38:43 -03:00
Vedanshu Jain 276ab00d86
Merge pull request #26044 from woocommerce/add/menu-order-count-filter
Added new filter for modification of order processing count in menu
2020-05-08 18:13:55 +05:30
Jason 8ae5b4d5a6
Update class-wc-admin-addons.php
Fix variable name typo. `$parameters`
2020-05-07 16:19:31 -07:00
Claudio Sanches 224559e73f
Updated since tag and removed global variable 2020-05-07 18:57:53 -03:00
Claudio Sanches 7ee559004b Change notice class to error 2020-05-07 16:05:45 -03:00
Claudio Sanches 16ec0007cf Set "Options -Indexes" for redirect download method
Stop the .htaccess to get removed and stop directory listing
2020-05-06 23:42:33 -03:00
Claudio Sanches 16027eb33e Updated the notice 2020-05-06 21:50:01 -03:00