Commit Graph

16210 Commits

Author SHA1 Message Date
Peter Fabian b9cdc760ac
Merge pull request #20817 from keefyhub/master
Add class names to `edit_category_fields()` to be inline with other f…
2018-07-19 18:45:00 +02:00
Peter Fabian 22059880cd
Merge pull request #20842 from rnaby/180718-221942-wc-data
Unnecessary Variables and Spaces Removed
2018-07-19 13:49:25 +02:00
Khan M Rashedun-Naby 25ab294d40 Unnecessay Spaces Removed 2018-07-19 10:33:22 +06:00
Claudio Sanches 09d50df86b
Merge pull request #20753 from ldybecklee/master
Fix product csv exporter get stock value
2018-07-18 21:23:44 -03:00
Gerhard Potgieter ea2b3f9d7a
Merge pull request #20821 from woocommerce/fix/20718
Pass an instance of the background updater to the db update callbacks
2018-07-18 14:51:12 +02:00
ldybecklee a7de4672dc
Update class-wc-product-csv-exporter.php 2018-07-17 12:10:55 +08:00
ldybecklee 0cf070ed5e
fix method 'get_column_value_stock' 2018-07-17 12:09:34 +08:00
Rodrigo Primo b39b419e5b Pass an instance of the background updater to the db update callbacks
This commit changes the way that WC_Background_Updater::task() calls the database update callbacks and adds the WC_Background_Updater instance as the first parameter to the callbacks. This is used in wc_update_350_order_customer_id() (36b6bd79c0/includes/wc-update-functions.php (L1870)) to monitor memory usage while the function is running. This change was intended to ship with PR #17895 (see commit c77b2f20f4) but was accidentaly removed when merging commit 083c994732 from another PR.

Fixes #20718
2018-07-16 14:24:42 -03:00
Rodrigo Primo bfebd30565
Merge pull request #20726 from itowhid06/master
Convert  hardcoded db prefix to dynamic db prefix. Fixes #20718
2018-07-16 14:21:45 -03:00
Keith Light 4144211754 Add class names to `edit_category_fields()` to be inline with other fields
Class names are added in `add_category_fields()` but not `edit_category_fields()`
2018-07-16 15:24:57 +01:00
Peter Fabian 3fa3830b6c
Merge pull request #20757 from woocommerce/update/wc_get_user_agent
Make wc_get_user_agent respect RFC2616
2018-07-12 11:46:51 +02:00
Claudiu Lodromanean 6dbd5d5323
Merge pull request #20731 from woocommerce/add/20724
Do not load all tables in multisite system status
2018-07-11 13:42:52 -07:00
Gerhard Potgieter f0bd830502 Do not return or store user agent in lower case as HTTP header fields values are case sensitive as per rfc2616 2018-07-11 13:54:14 +02:00
Gerhard Potgieter 7fa802071e
Merge pull request #20490 from dezio1900/master
Allow items to be changed in wc_save_order_items function
2018-07-11 12:52:36 +02:00
ldybecklee 327fd26c70
Fix product csv exporter get stock value
seems the original get stock value is wrong, but I'm not sure if my change is correct...
what i'm considering is this line:  if ( $product->is_type( 'variation' && 'parent' === $manage_stock ) ) {
2018-07-11 17:28:50 +08:00
Gerhard Potgieter 3cda8c439c Better table matching on multisite, hat tip to @claudiulodro for pointing me in the right direction. 2018-07-11 11:19:10 +02:00
Claudiu Lodromanean 1ef4aa10a0
Merge pull request #20728 from woocommerce/fix/20708
Add edit_theme_options capability to shop manager role
2018-07-10 12:01:13 -07:00
Claudio Sanches 9b7fbff544
Merge pull request #20686 from woocommerce/fix/20673
Replaced query attribute placeholder with actual value for header link.
2018-07-10 15:22:30 -03:00
Claudio Sanches 4fd6dbd880
Merge pull request #20740 from woocommerce/fix/20224-b
Escape sku input properly for quick edit
2018-07-10 15:22:09 -03:00
Claudio Sanches 3ed4dea4bb
Merge pull request #20723 from woocommerce/fix/20707
Only wordwrap plain emails
2018-07-10 15:21:57 -03:00
Claudio Sanches 1c7b2f3100
Merge pull request #20670 from woocommerce/pr/20669
Deleting a product via API should handle children products regardless of type.
2018-07-10 15:16:13 -03:00
Gerhard Potgieter ac09473853 Escape sku input properly for quickedit 2018-07-10 10:56:49 +02:00
Gerhard Potgieter 36b6bd79c0 Add update routines to recreate user roles 2018-07-10 10:30:11 +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
Claudiu Lodromanean 24a1ccf5fc
Merge pull request #20732 from woocommerce/update/20709
Outdated templates notice improvements
2018-07-09 11:27:46 -07:00
Claudiu Lodromanean 4d0890bf3b
Merge pull request #20714 from yratof/yratof-patch-item-name
Added filter on item name in quotes
2018-07-09 11:06:45 -07:00
Claudiu Lodromanean e8a2e19b27
Merge pull request #20648 from woocommerce/update/crud-get-image
Custom tables: Get image from ID, not post thumbnail
2018-07-09 11:04:52 -07:00
Gerhard Potgieter 56a9799e6d
Merge pull request #20654 from woocommerce/update/get-terms
Custom tables - remove get terms
2018-07-09 15:27:26 +02:00
Gerhard Potgieter a4e3283b20 Update outdated templates notice 2018-07-09 15:10:49 +02:00
Gerhard Potgieter beaa610cc0 Only load tables for system that is part of current multisite, this avoids displaying all tables in a MS speeding up page load, and also prevent divulding tables on other sites in the MS environment. 2018-07-09 13:48:05 +02:00
Gerhard Potgieter 1fdcf2a238 Fix log file deletion functionality. 2018-07-09 13:01:23 +02:00
Gerhard Potgieter ef2f868b89 Add edit_theme_options capability to shop manager to allow access to customizer for changing WooCommerce settings. 2018-07-09 10:45:48 +02:00
Towhidul Islam 7a957cc130 Convert hardcoded db prefix to dynamic db prefix. Fixes #20718 2018-07-08 10:35:32 +06:00
claudiulodro 38324edc71 Only wordwrap plain emails 2018-07-06 13:29:01 -07:00
Andrew Lazarus d49f02a4e6
Updated prefix in filter 2018-07-06 19:04:08 +02:00
Claudiu Lodromanean 404fbca655
Merge pull request #20722 from woocommerce/tweak/image-size-filters
Add image size filters to wc_get_product_attachment_props()
2018-07-06 09:38:39 -07:00
Claudiu Lodromanean 9792f3399e
Merge pull request #20706 from woocommerce/fix/20705
Fixed Webhooks and REST API Keys list table and settings
2018-07-06 09:26:44 -07:00
Tiago Noronha fda124147b phpcs 2018-07-06 16:36:19 +01:00
Tiago Noronha 9970f1799a Add image size filters to wc_get_product_attachment_props() 2018-07-06 16:35:43 +01:00
Andrew Lazarus 97269fc5d9
Added filter on item name in quotes
Filter added to item in quotes. 

Initially was thinking that is it needed to translate the quotes only? I can't find any languages that do this specifically, but if it's a RTL language, perhaps you'd swap around the quote direction.

The function `wc_add_to_cart_message` gives you the filter `wc_add_to_cart_message` to play with, but is already set in stone as HTML, and if you truly want to change the HTML of this message, you would need to rewrite the function.

Simply adding `<strong>` to the product title is not possible without preg_replacing or hooking into gettext
2018-07-05 16:10:32 +02:00
Claudio Sanches b044e4c46d Fixed missing bulk action notices for REST API keys 2018-07-04 16:24:27 -03:00
Claudio Sanches 8f3af95004 Fixed revoke key bulk action 2018-07-04 16:09:04 -03:00
Claudio Sanches 44f081ac7e Prevents save notice in keys table list 2018-07-04 16:07:17 -03:00
Claudio Sanches 1cf0c78beb Prevents "Your settings have been saved." notices on the table list 2018-07-04 16:04:47 -03:00
Claudio Sanches 7e94f45f12 Custom search box 2018-07-04 15:43:31 -03:00
Claudio Sanches 3774a05077 Only use "post" in list table 2018-07-04 15:43:13 -03:00
Claudio Sanches 2a0a826be1 Fixed form parameters for webhooks and keys admin forms
Fixes #20705
2018-07-04 15:30:08 -03:00
Paul Dechov adceaffaa2 OBW: Change name of PayPal Express Checkout gateway to match rebranding 2018-07-04 10:46:19 -04:00
Claudiu Lodromanean 7b56840f36
Merge pull request #20695 from woocommerce/fix/20684
Check if $_POST['store_state'] is set before using it
2018-07-03 11:11:16 -07:00
Claudiu Lodromanean 78015f7265
Merge pull request #20690 from woocommerce/fix/20677
Add ajax-add-to-cart class to button only if product can be purchased.
2018-07-03 11:02:44 -07:00