Rodrigo Primo
12bac0f2b6
Merge branch 'master' into fix/21790
2018-11-22 10:57:47 -02:00
Rodrigo Primo
a096e2729a
Merge pull request #21936 from woocommerce/fix/21878
...
Use wp_kses_post for sanitizing product names instead of esc_html
2018-11-22 10:54:57 -02:00
Claudiu Lodromanean
dd2ef82dc8
Merge pull request #21797 from jdmadison/fix-21796
...
Add woocommerce_hold_stock_minutes check back to calculation
2018-11-21 13:11:20 -08:00
Claudiu Lodromanean
b85598a576
Merge pull request #22001 from woocommerce/fix/21792
...
Fix missing lost password notices
2018-11-21 13:06:39 -08:00
Claudiu Lodromanean
e0cf359378
Merge pull request #22000 from woocommerce/fix/21990
...
Fix arialabelledby attribute for quantity selectors
2018-11-21 13:02:53 -08:00
Claudiu Lodromanean
152b609c35
Merge pull request #21981 from woocommerce/fix/21422
...
Log file timestamp should be UTC
2018-11-21 12:59:46 -08:00
Claudio Sanches
6a21ec401c
Fixed coding standards
2018-11-21 16:12:35 -02:00
Claudio Sanches
fa8ec35006
Fixed REST API authentication when using 3rd party auth methods
...
Closes #21789
2018-11-21 16:10:36 -02:00
Rodrigo Primo
171e90815b
Merge pull request #21985 from webdados/patch-1
...
Fix locale for São Tomé and Príncipe
2018-11-21 15:25:08 -02:00
Rodrigo Primo
c349136273
Merge branch 'master' into php73-wp-nightly
2018-11-21 11:15:48 -02:00
Rodrigo Primo
2c8d006c37
Update PHPCompatibility sniff names
...
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Rodrigo Primo
bfa9424d17
Update WPCS sniff name
...
The name of one of the WPCS sniffs changed from WordPress.CSRF.NonceVerification.NoNonceVerification to WordPress.Security.NonceVerification.NoNonceVerification. This commit updates all instances where this sniff is used in WooCommerce codebase.
2018-11-21 11:07:05 -02:00
Rodrigo Primo
e467737653
phpcs fixes
2018-11-21 11:06:42 -02:00
Gerhard
f58fcf6b3b
Add woocommerce_before_lost_password_form and woocommerce_after_lost_password_form actions and hook into woocommerce_output_all_notices
2018-11-21 10:32:28 +02:00
Gerhard
8d6d95935a
Populare arealabelledby attribute by actually passing the product_name in the $args.
2018-11-21 09:49:38 +02:00
claudiulodro
ebea6b96be
When only selling to one country set customer location to that country
2018-11-20 12:07:57 -08:00
Claudiu Lodromanean
ac80e6683e
Merge pull request #21947 from franticpsyx/issue-21845
...
Refine new order-again logic
2018-11-20 10:53:40 -08:00
Rodrigo Primo
a9e532022a
Replace `continue` inside `switch` statement with `break`
...
PHP 7.3 will generate a warning when `continue` is used inside a `switch` statement. For more information see the relevant section in https://make.wordpress.org/core/2018/10/15/wordpress-and-php-7-3/
2018-11-20 16:24:11 -02:00
Rodrigo Primo
d29ead0e63
Make Emogrifier regular expressions compatibile with PCRE2
...
In preparation for PHP 7.3, this commit makes the regular expressions used in Emogrifier compatible with PCRE2. It was necessary to escape hyphens used in a few regular expressions. Since the changes were simple and I'm not familiar enough with Emogrifier, I opted to backport the changes that they made in preparation for PHP 7.3 (https://github.com/MyIntervals/emogrifier/pull/588 and https://github.com/MyIntervals/emogrifier/issues/587 ) instead of updating the library to the yet to be released version 2.1.0.
This change removes the following warning when running WC unit tests using PHP 7.3:
PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 39 in includes/libraries/class-emogrifier.php on line 1504
For more information about the PCRE2 change in PHP 7.3 see the section "PCRE to PCRE2 migration" in the link https://ayesh.me/Upgrade-PHP-7.3
2018-11-20 15:54:54 -02:00
Marco Almeida
276d6f3526
Fix Angolan "State" label to "Province"
...
In Angola "states" are called "Províncias" (or "Provinces" in English)
2018-11-20 14:17:11 +00:00
Marco Almeida
b19941dae4
Fix locale for São Tomé and Príncipe
...
Remove Postal Code for São Tomé and Príncipe, because they still don't have it in place. Also the stat field should have "District" as label.
2018-11-20 13:29:45 +00:00
Marco Almeida
9282c1a619
Remove postal code for Angola
...
Angola still doesn't have a postcode system in place.
References:
https://pt.wikipedia.org/wiki/C%C3%B3digo_postal#_Angola
https://en.wikipedia.org/wiki/List_of_postal_codes
2018-11-20 12:36:45 +00:00
Gerhard
47226ae2bf
PHPCS fixes
2018-11-20 12:54:59 +02:00
Gerhard
c05c17d947
Timestamp should be in UTC since we use date( 'c' ) for outputting the date/time in the file.
2018-11-20 12:46:52 +02:00
Claudiu Lodromanean
0cf264dc72
Merge pull request #21949 from franticpsyx/issue-21948
...
Parse query using '$wpdb->prepare' before querying
2018-11-19 13:13:53 -08:00
Claudiu Lodromanean
b585553ee9
Merge pull request #21864 from Prospress/fix/21457
...
allow export and display of attribute labels containing html special characters
2018-11-19 12:20:41 -08:00
Claudiu Lodromanean
0ddfbbe1ac
Merge pull request #21954 from willgorham/fix/21793
...
Fix hardcoded db table name [Fixes #21793 ]
2018-11-19 12:10:55 -08:00
Claudiu Lodromanean
4d93bf60e1
Merge pull request #21930 from woocommerce/update/21915
...
Add WP 5.0 checks to Wootenberg notices
2018-11-19 11:47:43 -08:00
Tiago Noronha
89eec8652f
Add support for Twenty Nineteen color scheme option
2018-11-19 15:02:26 +00:00
Will Gorham
4b1dd35dda
Revert "phpcs" (bc4010) - incorrect phpcs fixes
...
This reverts commit bc4010cfc1
.
2018-11-16 15:20:57 -05:00
Will Gorham
b53fe55299
More phpcs
2018-11-16 14:47:31 -05:00
Will Gorham
bc4010cfc1
phpcs
2018-11-16 14:15:18 -05:00
Will Gorham
20526cba08
Fix hardcoded db table name
2018-11-16 14:15:04 -05:00
Valerie
94275039cd
OBW: Fix ShipStation plugin info so install works
2018-11-16 14:06:58 -05:00
Tiago Noronha
4e01bf18dd
Twenty Nineteen basic styling
2018-11-16 16:38:05 +00:00
Tiago Noronha
3168f13d9d
Skeleton for Twenty Nineteen integration
2018-11-16 16:38:05 +00:00
Manos Psychogyiopoulos
60b84c09aa
Parse query using '$wpdb->prepare' before querying
2018-11-16 16:11:31 +02:00
Manos Psychogyiopoulos
059d803484
Rename 'woocommerce_add_cart_item' to 'woocommerce_add_order_again_cart_item'
2018-11-16 15:27:30 +02:00
Manos Psychogyiopoulos
520a7e1a27
Pass order-again items to 'woocommerce_ordered_again' action
2018-11-16 15:25:35 +02:00
Manos Psychogyiopoulos
c44809422b
Pass order-again cart contents to 'woocommerce_ordered_again' action
2018-11-16 15:23:08 +02:00
Gerhard
b071855632
Some PHPCS fixes
2018-11-16 12:17:33 +02:00
Gerhard
3943ec6395
Convert array keys to lower case before comparing keys to exclude.
2018-11-16 12:13:51 +02:00
Gerhard
f7f7eebc1c
Fix PHPCS issues
2018-11-16 08:29:13 +02:00
Gerhard
92bf56cde0
Add wc_update_352_drop_download_log_fk to the DB update routine.
2018-11-16 08:27:06 +02:00
Gerhard
92e9f2811b
Make the wc_download_log FK use table prefix for cases where multiple single install tables are used in the same DB.
2018-11-16 08:18:25 +02:00
claudiulodro
d09e9eb95c
Use wp_kses_post for sanitizing product names instead of esc_html
2018-11-15 11:42:22 -08:00
Claudiu Lodromanean
8f145c70d7
Merge pull request #21934 from Prospress/fix/21931
...
use lower case for Croatian Kuna symbol
2018-11-15 10:51:22 -08:00
claudiulodro
180ead91e4
Update notice wording for wp 5.0
2018-11-15 10:19:51 -08:00
Claudiu Lodromanean
f13c62c5ea
Merge pull request #21928 from woocommerce/fix/21926
...
Initialise $changes before usage.
2018-11-15 10:06:38 -08:00
Claudiu Lodromanean
0f72b5b6b1
Merge pull request #21923 from woocommerce/add/db-upgrade-tools
...
Update database tools option
2018-11-15 10:02:14 -08:00
Ron Rennick
c911d90614
use lower case for Croatian Kuna symbol
2018-11-15 13:36:36 -04:00
Claudiu Lodromanean
314088acad
Merge pull request #21836 from Prospress/fix/21775
...
use multisite blog prefix in `fk_wc_download_log_permission_id` constraint name
2018-11-15 09:13:14 -08:00
Claudiu Lodromanean
9fab802ff3
Merge pull request #21706 from nishitlangaliya/issue-21657
...
fix: Various 'Table does not exist' in WooCommerce status
2018-11-15 09:12:51 -08:00
Gerhard
f2230da7d2
Use get_bloginfo( 'version' ) instead of wp_version global
2018-11-15 15:27:58 +02:00
Gerhard
341c0a8277
Add wp 5.0 checks to wootenberg notice checks.
2018-11-15 15:26:19 +02:00
Gerhard
a3f3b282ac
Initialise $changes before usage.
2018-11-15 14:36:56 +02:00
Gerhard
6a2b511731
Change wording to update instead of upgrade.
2018-11-15 12:10:17 +02:00
Gerhard
051fb5be36
Add a Upgrade database option to the tools tab. If clicked it will do a forced DB upgrade.
2018-11-15 12:03:12 +02:00
Gerhard
77309a86c3
When dynamic choosing API class, the comparison should be !== as the lastest version has no v3 in the class name.
2018-11-15 11:15:42 +02:00
Claudiu Lodromanean
c3c84d2573
Merge pull request #21849 from woocommerce/fix/21832
...
Pay pending order, do not check stock when not managing stock
2018-11-14 14:07:04 -05:00
Claudiu Lodromanean
81be4f4795
Merge pull request #21738 from Prospress/issue_21736
...
Add SSL check to dashboard SSL notice
2018-11-14 12:51:50 -05:00
Claudiu Lodromanean
32afd82cfa
Merge pull request #21838 from woocommerce/update/preview
...
Reintroduce Preview button on products
2018-11-14 12:38:29 -05:00
Ron Rennick
d0672b68c6
Capitalize dashboard widget titles
2018-11-14 13:34:15 -04:00
Ron Rennick
8e7715088e
allow limited html in `woocommerce_rating_filter_count` filter
2018-11-13 11:33:44 -04:00
Kanishk
ebd08e72b3
Added action on '9' priority
2018-11-10 02:12:09 +05:30
Ron Rennick
5b486a1e2f
allow export and display of attribute labels containing html special characters
2018-11-09 09:17:18 -04:00
Ron Rennick
91ddf1f7c1
make logic consistent with `woocommerce_formatted_address_force_country_display` filter name
2018-11-08 16:35:57 -04:00
Claudiu Lodromanean
f39b006264
Merge pull request #21856 from woocommerce/fix/21763
...
Apply field priority sorting on additional filters
2018-11-08 10:08:14 -05:00
Gerhard
879139d81e
Apply priority filtering on additional filters to accomodate pages like my account edit address.
2018-11-07 14:16:05 -05:00
Refael Iliaguyev
d8648f8aa7
Use correct return types
2018-11-07 16:49:41 +02:00
Gerhard
aabae5d21f
On form-pay, do not check for stock if not managing stock or allowing backorders.
2018-11-07 08:54:41 -05:00
Claudiu Lodromanean
452e8bc065
Merge pull request #21831 from jvanderveen/master
...
Fix for: WooCommerce Tax Rates (CSV) import does not work when entered path to file #21826
2018-11-06 16:08:54 -05:00
Kanishk
c7fc4a9521
Refactored code to add filters on plugins_loaded
2018-11-07 02:32:57 +05:30
Claudiu Lodromanean
f4cd63963e
Merge pull request #21821 from woocommerce/fix/21798
...
Display notices in order pay page.
2018-11-06 16:00:13 -05:00
Claudiu Lodromanean
cae710c294
Merge pull request #21810 from ghettifish/master
...
added an error for variation using variation for parent in import and…
2018-11-06 15:56:27 -05:00
Claudiu Lodromanean
5fc9879e1c
Merge pull request #21801 from woocommerce/fix/priority
...
Check priority index before comparing
2018-11-06 15:55:01 -05:00
claudiulodro
0488bcd324
fix typo
2018-11-06 15:53:11 -05:00
Claudiu Lodromanean
900d3bad93
Merge pull request #21778 from woocommerce/fix/21426
...
Make get_on_sale_products not include non published parent results
2018-11-06 15:50:31 -05:00
Ron Rennick
e3f00a6fbd
use multisite blog prefix in `fk_wc_download_log_permission_id` constraint name
2018-11-06 16:43:46 -04:00
claudiulodro
510d3a756f
Reintroduce Preview button on products
2018-11-06 15:28:23 -05:00
Kanishk
b5b60c93b7
Merge branch 'master' into fix/helper-not-able-to-detect-local-woo-plugin
2018-11-07 01:46:31 +05:30
jvanderveen
c205cab470
Update class-wc-tax-rate-importer.php
2018-11-06 15:01:44 +01:00
Nicolas Bovee
b7ef951ac0
Revised error message and set is_type method on .
2018-11-05 23:19:10 -07:00
Claudio Sanches
c9d62e506a
Use hook instead
2018-11-05 18:40:00 -02:00
Claudio Sanches
0da8f23253
Display notices in order pay page.
...
Closes #21798
2018-11-05 18:35:23 -02:00
Claudiu Lodromanean
b551f57173
Merge pull request #21769 from nishitlangaliya/issue-21765
...
fix: Manually adding fee on order generate html code
2018-11-05 15:27:33 -05:00
Nico Mollet
0dcf6e2796
"account erasure request" text is not translatable
...
`esc_html__` should be used instead of `esc_html`
2018-11-05 14:47:28 +01:00
Nicolas Bovee
fe5f2d411b
added an error for variation using variation for parent in import and removed @access on 87
2018-11-04 23:34:17 -07:00
roykho
800ed5fe73
Check priority index before comparing
2018-11-03 08:13:14 -07:00
Jeremy Madison
17c43ffa5d
Add woocommerce_hold_stock_minutes check back to calculation
2018-11-02 12:25:58 -07:00
nishitlangaliya
b7cf72d626
fix: save fee name without html from base source
2018-11-03 00:19:30 +05:30
claudiulodro
b0b3ddccb0
remove extra parens
2018-11-02 10:21:30 -07:00
claudiulodro
0fa1448cfe
Topic blacklist
2018-11-02 10:21:30 -07:00
Claudio Sanches
a1875a135e
Added exception for when a non-admin user tries assign API keys to an admin
2018-11-02 10:21:18 -07:00
Claudio Sanches
8618d9a976
Fixed coding standards
2018-11-02 10:21:18 -07:00
Claudio Sanches
7437289418
Check for permissions before allow edit REST API keys
2018-11-02 10:21:18 -07:00
Claudio Sanches
58d2fc85ed
Fixed permission check to allow list customers
2018-11-02 10:21:08 -07:00
Claudio Sanches
8c908b178e
Fixed permission check on customers endpoint for legacy REST API
2018-11-02 10:21:08 -07:00
Claudio Sanches
246cc569f3
Allow shop managers to only manipulate customers on REST API
2018-11-02 10:21:08 -07:00
Claudio Sanches
fff05e9434
Included sanitization for product's description on legacy REST API
2018-11-02 10:20:55 -07:00