Commit Graph

4316 Commits

Author SHA1 Message Date
Mike Jolley dbd7f2d2e4 Pass autoload when saving options 2018-05-01 11:54:20 +01:00
Norcross a9cd0d9bd8 including `isset` check for nonce variable. 2018-04-30 11:55:03 -04:00
Mike Jolley cdec3321ac Broken log due to variable 2018-04-30 16:23:49 +01:00
Mike Jolley 6f6f15d22a Link to erasure page 2018-04-30 15:41:38 +01:00
Mike Jolley c765ce644d Inactive account handling 2018-04-30 15:38:45 +01:00
Gerhard Potgieter a48fababe2
Merge pull request #19842 from woocommerce/fix/19831
Extensions helper caching fixes
2018-04-30 14:18:40 +02:00
Claudiu Lodromanean 3b24aa9791
Merge pull request #19877 from woocommerce/fix/19863
Fix CSV import cleanup methods
2018-04-26 13:05:27 -07:00
claudiulodro 0b51ad006e Spelling fix 2018-04-26 13:04:09 -07:00
Claudiu Lodromanean 88a13b02db
Merge pull request #19876 from woocommerce/fix/product-type-filter
Fix: product type filter should show selected product type
2018-04-26 11:56:04 -07:00
Claudiu Lodromanean 0bf2dfbca8
Merge pull request #19872 from woocommerce/update/email-restrictions-text
Updates email restrictions label so it's clear this is a whitelist
2018-04-26 11:49:54 -07:00
Mike Jolley 90c5cf67fa Fixed data cleanup after failed import 2018-04-26 16:05:12 +01:00
Rodrigo Primo 49855b4676 Fix: product type filter should show selected product type
Since admin lists were refactored in 8f37ea33ed, a bug was introduced that prevented the "Filter by product type" select box in the products list page in the admin from showing the selected product type when filtering by "Downloadable" products. Before marking this option as selected, the code was checking if `$wp_query->query['product_type']` is set. This check made sense before the refactor (see 8f37ea33ed (diff-a116210e8adc50b0853846ba935daaadL1544)) but it doesn't make sense anymore. In the new method, `$wp_query` is not even used.
2018-04-26 10:02:44 -03:00
Mike Jolley ef69c27f25 Updates email restrictions label so it's clear this is a whitelist 2018-04-26 12:58:08 +01:00
Mike Jolley e6eaa4f83c Fix colorpicker styling 2018-04-26 12:21:17 +01:00
Mike Jolley e15a4f63a0 Update defaults so account creation is disabled until setup by admin 2018-04-26 11:50:15 +01:00
Mike Jolley 2f6d2b857b
Merge pull request #19833 from rnaby/240418-091920-wc-admin-log-table-list
Inverted the condition based returns.
2018-04-25 12:00:34 +01:00
Mike Jolley 30a8785ff4 Add up/down buttons 2018-04-24 19:26:17 +01:00
Mike Jolley 7be62795db Add wp-util script and strings for localisation 2018-04-24 19:26:00 +01:00
Mike Jolley c8005a8c00 Wording updates 2018-04-24 16:47:55 +01:00
Mike Jolley f9c3ed14e4 Fix transient clearing 2018-04-24 15:44:30 +01:00
Mike Jolley d6a6356d53 After activating a subscription, caches for updates must be purged 2018-04-24 15:43:52 +01:00
Gerhard Potgieter 07dcf77f6f Deffer first tracker send to a cron instead of direct calling it. 2018-04-24 14:16:41 +02:00
Khan M Rashedun-Naby 845097f42a Inverted the condition based returns. 2018-04-24 09:21:33 +06:00
GlennMartin1 da6000a633
Update class-wc-admin-help.php 2018-04-20 14:25:11 -04:00
GlennMartin1 ab929c5ae3
correct two links in Help tab 2018-04-20 14:20:39 -04:00
Mike Jolley f71ffb5f5e Added erasure code and moved into separate classes. 2018-04-20 16:47:58 +01:00
Claudio Sanches 00bc21135c Fixed admin attributes page inline docs 2018-04-18 15:32:46 -03:00
claudiulodro 3547df00d9 Use min of 1 for number 2018-04-18 09:48:42 -07:00
claudiulodro c15cb09700 Resolve merge conflicts 2018-04-18 09:46:15 -07:00
claudiulodro 754031ce6d Add min to date number 2018-04-18 09:42:32 -07:00
claudiulodro 63972447cb Fix nonexistent function calls 2018-04-18 09:40:23 -07:00
Beka Rice 7bd9cdacaa Filter the used coupon URL in 'edit order' screen 2018-04-18 11:49:35 -04:00
Claudio Sanches 9679e7be1f
Merge pull request #19772 from woocommerce/update/notice-display
Only show notices on specific screens
2018-04-18 12:23:11 -03:00
Mike Jolley d381330a91
Merge pull request #19705 from woocommerce/fix/19619
Handling of PHP's automatic array key conversion to int
2018-04-18 15:40:31 +01:00
Claudiu Lodromanean 48eb13d602
Merge pull request #19747 from woocommerce/update/19734
Add privacy policy to account pages
2018-04-18 07:26:06 -07:00
Peter Fabian 4538f3fa8f Moved wc_selected to core functions. 2018-04-18 15:54:57 +02:00
GlennMartin1 256a4d96e2
grammar fix... 2018-04-18 09:11:32 -04:00
Mike Jolley fc8e7be3ab Only show notices on specific screens 2018-04-18 14:08:31 +01:00
Mike Jolley e201b74832
Merge pull request #19756 from woocommerce/feature/19735
Notice about HTTPS as a requirement
2018-04-18 13:53:54 +01:00
Mike Jolley 5455e7049b Update notice text 2018-04-18 13:52:59 +01:00
Mike Jolley 30ba25d535 Remove defaults 2018-04-18 11:24:07 +01:00
Mike Jolley 9dfb91835e Merge branch 'master' into update/gdpr-order-cleanup 2018-04-18 11:21:43 +01:00
Mike Jolley 8a05930cba
Merge pull request #19761 from woocommerce/update/obw-save-locales-measurement-units-when-saving-address
OBW: Save locale-specific measurement units upon saving address
2018-04-18 11:09:48 +01:00
Mike Jolley b05ac76303
Merge pull request #19762 from woocommerce/update/obw-store-state-control-in-store-setup-form-layout
OBW: Position State select between City and Zip inputs
2018-04-18 11:04:41 +01:00
Peter Fabian b770e0baed Used the selected function to take care of markup and simple case. 2018-04-18 09:57:19 +02:00
Paul Dechov c1211e5f03 OBW: Move store State dropdown between City and Zip 2018-04-17 23:16:59 -04:00
Paul Dechov 8c8e18d25b OBW: Save locale-specific measurement units upon saving address 2018-04-17 22:52:42 -04:00
Jeff Stieler e2d6656124 OBW: show PayFast payment gateway to merchants in South Africa. 2018-04-17 17:45:43 -06:00
Claudiu Lodromanean 59d967c859
Merge pull request #19754 from woocommerce/add/obw-eway-payment-gateway
OBW: Show eWAY payment gateway to merchants in AUS/NZ.
2018-04-17 16:33:41 -07:00
Jeff Stieler 098115006e OBW: prevent MailChimp from redirecting after activation. 2018-04-17 17:15:14 -06:00
Claudio Sanches 5dda3496fc Display message once per user 2018-04-17 18:26:08 -03:00
Claudio Sanches c4d099fe87 Included missing doc link 2018-04-17 18:10:36 -03:00
Jeff Stieler baa2180221 OBW: Show eWAY payment gateway to merchants in AUS/NZ. 2018-04-17 15:05:34 -06:00
claudiulodro 6d8946048f Add skip link to recommended step and make skip links darker 2018-04-17 13:55:23 -07: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
Claudiu Lodromanean 624e8d5cb0
Merge pull request #19723 from woocommerce/update/extras-obw-tab
OBW: Replace Extras step with Recommended
2018-04-17 13:32:14 -07:00
claudiulodro f9e45bea91 Bring up-to-date with master and resolve merge conflicts 2018-04-17 13:27:39 -07:00
Valerie 43ab4b25ae OBW: Update Recommended step description 2018-04-17 13:51:49 -04:00
Valerie 551db8246e OBW: Add MailChimp to recommended step 2018-04-17 13:51:49 -04:00
Valerie c1e55cd6a5 OBW: Update automated taxes option 2018-04-17 13:51:48 -04:00
Valerie 452491d12d OBW: Update Storefront description and style 2018-04-17 13:51:46 -04:00
Mike Jolley 6c5d4c7cda Add privacy settings 2018-04-17 18:32:31 +01:00
Valerie cadcd562d8 OBW: Rename Extras Step as Recommended 2018-04-17 13:14:27 -04:00
Claudiu Lodromanean 90dfbf0ccd
Merge pull request #19728 from woocommerce/fix/plugin-installer-non-slug-filenames
Setup wizard: Bug fix and support for non-slug filenames in plugin installer
2018-04-17 08:39:16 -07:00
Mike Jolley fc05f8adb2
Merge pull request #19625 from danielbitzer/master
Set the order created_via property for orders created via admin area
2018-04-17 16:26:20 +01:00
Mike Jolley bce3c7e94c Disable anon for now 2018-04-17 15:33:40 +01:00
Mike Jolley 314d949d2c Background process to cleanup 2018-04-17 15:21:03 +01:00
Peter Fabian 7861d7b95f Changed usage of selected with in_array to wc_selected. 2018-04-17 13:24:39 +02:00
Mike Jolley d8814f9381 tip alignment 2018-04-17 12:19:01 +01:00
Mike Jolley 27cf41bbf0 Added personal data cleanup settings 2018-04-17 11:45:24 +01:00
Peter Fabian 49529e0912 Added wc_selected function.
- Added unit test for the wc_selected function.
2018-04-17 12:13:46 +02:00
Mike Jolley 094fc1bf3a
Merge pull request #19703 from woocommerce/update/settings-tabs-for-privacy
Moved around settings tabs to allow for a privacy page
2018-04-16 16:45:19 +01:00
Mike Jolley 78f96fcd40 Hook mapping/bw compat 2018-04-16 14:27:03 +01:00
Paul Dechov 73884400f1 Remove unnecessary 'file' value for existing plugins 2018-04-16 07:21:04 -04:00
Paul Dechov 2b118c8ba8 Always check for active plugin in wizard before scheduling install
Check for active plugin independent of whether 'file' is present. Also omits directory from 'file' string and prepends [slug]/ to it.
2018-04-16 07:20:42 -04:00
Peter Fabian 93a0808887 Specified input parameters more precisely. 2018-04-13 16:35:14 +02:00
Peter Fabian 8cb1490d55 Added wc prefix to function name. 2018-04-13 16:29:16 +02:00
Peter Fabian 62f9b129dc Converted all input values to selected to strings
Extracted conversions and compare logic to a separate function to improve readability.
2018-04-13 14:23:32 +02:00
Gabor Javorszky d569920825 Cast coupon's $post->ID to int 2018-04-13 11:25:58 +01:00
Peter Fabian 0fc6d4e20c Fix strict comparison for normal select, too. 2018-04-13 10:26:37 +02:00
Peter Fabian e17e6d0b0f Improved the comment 2018-04-12 19:34:49 +02:00
Mike Jolley 1b34cd4745 Moved settings tabs around to allow for privacy page. 2018-04-12 16:59:42 +01:00
Mike Jolley 7080989081 Move coupon settings to general settings 2018-04-12 11:13:15 +01:00
Mike Jolley eb886c924e Rename option tabs 2018-04-12 11:13:01 +01:00
Mike Jolley efe0d36eea Load meta box input values using CRUD and edit context 2018-04-10 13:01:52 +01:00
Peter Fabian d2efef5a1c Handling of PHP's automatic array key conversion to int 2018-04-09 16:39:14 +02:00
Mohammed Saimon eccd74b71d added checking for invalid ratings while saving 2018-04-09 18:13:13 +06:00
Mohammed Saimon 6d973b98b6 returned data early if nonce checking is failed 2018-04-07 15:13:35 +06:00
Mohammed Saimon 6f36133ed5 Product rating count doesn't update when ratings are edited by admin is fixed #19581 2018-04-07 12:50:14 +06:00
Claudio Sanches 900c8fc33f
Merge pull request #19380 from woocommerce/update/19302
Override supports for PayPal to see if credentials exist
2018-04-06 15:44:42 -03:00
Daniel Bitzer 1f5d4050b3 Set created_via propery for orders created in admin area 2018-04-05 13:58:51 +02:00
Mike Jolley 68c6c16a3b
Merge pull request #19611 from woocommerce/fix/wc_get_page_id-bug
Fixed bug when using asbint() with wc_get_page_id()
2018-04-05 10:55:43 +01:00
Mike Jolley b0d3f732d6
Merge pull request #19615 from woocommerce/fix/variable-passed-by-reference
Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
2018-04-05 10:53:52 +01:00
Mike Jolley 086f07c47d
Merge pull request #19602 from woocommerce/fix/19431
Link product import/export to import/export capabilities
2018-04-05 10:45:29 +01:00
Claudio Sanches 0ac857f049 Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
Fixed notice:

```
PHP Notice:  Only variables should be passed by reference in includes/admin/importers/class-wc-product-csv-importer-controller.php on line 298
```
2018-04-04 15:50:08 -03:00
Claudio Sanches 95edc882ea Fixed bug when using asbint() with wc_get_page_id()
When a page does not exists `wc_get_page_id()` returns `-1`, so applying
`absint()` should cause bugs when comparing with "Hello world!" page.
2018-04-04 12:12:05 -03:00
Claudio Sanches ac2e71f22f
Merge pull request #19607 from kouratoras/patch-1
Switch to intval when checking for the shop page
2018-04-04 12:02:56 -03:00
Peter Fabian ada11aa4e2 Hid import/export from menu when having insufficient capabilities
- Made AJAX reply more verbose in case of insufficient capabilities.
2018-04-04 15:06:13 +02:00
Konstantinos Kouratoras 7a9569a185
Switch to intval when checking for the shop page
When shop page is not set, shop page id is set to -1. Using absint when checking if the current page is the shop page, this was applied to post with ID 1. Using intval, this is prevented.

Fixes #19606
2018-04-04 15:15:36 +03:00
Peter Fabian 0e25f5840a Comment PHPCS fix. 2018-04-04 12:18:53 +02:00
Peter Fabian d920f3dcba PHPCS fixes. 2018-04-04 12:06:01 +02:00
Peter Fabian 1ef47120a8 Link product import/export to import/export capabilities
- show Import/Export Products buttons only if the user has import/export capability
- show Woo importer/exporter under Tools only if user has import/export capability
- require both edit_products and import/export to run those actions
-
2018-04-04 10:30:49 +02:00
Philip Downer 73ff850b82 Add filter to suppress WordPress.com connection message.
Allows developers to supress only the WordPress.com connection message, while still leaving other admin notices (eg., upgrade notice) in place.
2018-04-03 13:42:01 -05:00
Mike Jolley 5ac7aac369 Improve can_refund_order and add unit tests 2018-04-03 17:09:09 +01:00
Mike Jolley 5bc26ebd79 Merge branch 'master' into update/17427 2018-04-03 14:38:49 +01:00
Claudiu Lodromanean fe140110a6
Merge pull request #19502 from rynaldos/duplicate-queries
Duplicate queries for WC_Admin_Report->get_order_report_data()
2018-04-02 08:49:25 -07:00
Will Gorham 55707ecc7e Display order item refund as negative value 2018-03-30 17:09:44 -04:00
Mike Jolley 01be034279 Disable geolocation if using legacy php #19548 2018-03-29 17:04:31 +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
Mike Jolley 4a6c526229
Merge pull request #19557 from bernattorras/before_variations_hook
Add 'woocommerce_variable_product_before_variations' hook to variations tab
2018-03-29 11:00:34 +01:00
bernat torras 307605a739 Added 'Removed extra tabs 2018-03-28 21:27:46 +02:00
Claudio Sanches e718bdd11c
Merge pull request #19192 from nishitlangaliya/Issue-18990
Fixes- Admin - removed product type column
2018-03-28 15:37:57 -03:00
bernat torras 47d85844d8 Added 'woocommerce_variable_product_before_variations' hook to variation tab 2018-03-28 16:02:06 +02:00
Mike Jolley 57378785bf Split up state and country fields 2018-03-27 19:32:04 +01:00
Mike Jolley 38c29204d4 Include US in US dollar dropdown so it's searchable 2018-03-27 18:35:15 +01:00
Mike Jolley 0c3ab5d485 Update currency text to make it clear it's to accept payments 2018-03-27 13:35:13 +01:00
Mike Jolley dd3b998851 Tweak wording for opt-out 2018-03-27 13:00:19 +01:00
rspublishing 2eca0d73bd Duplicate queries for WC_Admin_Report->get_order_report_data() 2018-03-23 11:15:21 +02:00
Claudio Sanches 21dc6d28cf
Merge branch 'master' into feature/18477 2018-03-21 14:31:58 -03:00
Mike Jolley ce7caa8029 Merge branch 'master' into fix/19284 2018-03-19 13:01:31 +00:00
Mike Jolley f7056a4284 missing echo 2018-03-19 12:59:50 +00:00
Mike Jolley eb26221b1a Merge branch 'master' into update/19061 2018-03-16 13:59:05 +00:00
Mike Jolley 7a568e2f68 Personal data removal experiment 2018-03-16 13:53:18 +00:00
claudiulodro b0fa583f6e Enable selecting with tab key on selectWoo 2018-03-15 11:52:07 -07:00
Mike Jolley 4bbdf30794 Reload gateways after updating the order. Fixes #19401 2018-03-15 12:39:30 +00:00
Mike Jolley e86ae89123 phpcs 2018-03-15 12:36:10 +00:00
Claudiu Lodromanean feba3bd3ed
Merge pull request #19378 from woocommerce/fix/19217
Deletes orphan variations after successful import.
2018-03-14 08:27:30 -07:00
Mike Jolley a60e51afe1 Merge branch 'master' into update/setup-wizard-activate-step-when-jetpack-connected 2018-03-14 12:49:44 +00:00
Mike Jolley f771e323d9 Set opt-in/out based on geolocation data and DNT headers 2018-03-14 12:32:40 +00: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
Claudiu Lodromanean 3a5644ddce
Merge pull request #19338 from woocommerce/fix/19222
Fix JS state/country inputs
2018-03-13 10:10:24 -07:00
Mike Jolley d910f11b49 Delete orphans after import 2018-03-13 11:14:24 +00:00
Mike Jolley 387ea23d39 phpcs 2018-03-13 11:11:11 +00:00
Mike Jolley 200f2371fd
Merge pull request #19342 from woocommerce/update/walkers-phpcs
Fixed walkers PHPCS violations
2018-03-13 10:17:27 +00:00
Mike Jolley 1b905b2975
Merge pull request #19331 from woocommerce/add/coupon-wildcard-email
Add wildcard email support for coupons.
2018-03-13 10:05:06 +00:00
Mike Jolley 272c43f0d8 Just ENT_QUOTES is enough in https://github.com/woocommerce/woocommerce/pull/19349 2018-03-13 09:58:38 +00:00
Anders Skouboe 363fb54a2d Decode single quotes in short description editor 2018-03-13 09:58:38 +00:00
Mike Jolley 906aa97aea Merge branch 'master' into update/19061 2018-03-12 19:28:53 +00:00
Mike Jolley b0a4502e0f Unslash quotes 2018-03-12 19:11:48 +00:00
Claudio Sanches 82fec65fa0 Merge branch 'master' into update/walkers-phpcs 2018-03-12 12:31:57 -03:00
Boro Sitnikovski d01ab9b24f Remove unnecessary string 2018-03-12 09:07:51 +01:00
Rodrigo Primo a0db877e24 phpcs fixes in includes/admin/importers/views/html-product-csv-import-form.php 2018-03-09 17:26:49 -03:00
Rodrigo Primo 9b03fff8b8 phpcs fixes in includes/admin/importers/views/html-csv-import-steps.php 2018-03-09 17:26:40 -03:00
Rodrigo Primo 924a7a5cc3 phpcs fixes in includes/admin/importers/views/html-csv-import-progress.php 2018-03-09 17:26:26 -03:00
Rodrigo Primo 56b82815a9 phpcs fixes in includes/admin/importers/views/html-csv-import-mapping.php 2018-03-09 17:26:16 -03:00
Rodrigo Primo 703627365a phpcs fixes in includes/admin/importers/views/html-csv-import-header.php 2018-03-09 17:26:05 -03:00