Claudiu Lodromanean
e4796cfa75
Merge pull request #21557 from jdeeburke/fix-memory-limit-byte-values
...
Fix some memory limit values not correctly converting to bytes
2018-10-15 09:17:27 -07:00
Claudiu Lodromanean
3e9b798ea8
Update readme.txt
2018-10-15 09:17:07 -07:00
Claudiu Lodromanean
d230b5e2e5
Merge pull request #21550 from woocommerce/update/geo-get-upload-dir
...
Use wp_get_upload_dir for geolite DB path
2018-10-15 09:15:46 -07:00
Claudiu Lodromanean
1472af6aa7
Update readme.txt
2018-10-15 09:15:42 -07:00
Jory Hogeveen
54036f8f38
Codestyle
2018-10-15 17:38:13 +02:00
Rodrigo Primo
f53b696ddf
Remove unnecessary call to urldecode()
...
This commit removes an unnecessary call to urldecode() as the superglobal $_REQUEST is already decoded by PHP (see http://php.net/urldecode ). Calling urldecode() on a previously decoded value was causing the issue described in #21542 .
2018-10-15 12:27:12 -03:00
Jory Hogeveen
e5f934d0a9
Codestyle
2018-10-15 17:21:04 +02:00
Rodrigo Primo
2854f8654b
Add two unit tests for wc_dropdown_variation_attribute_options()
...
Those two tests covers only the basic functionality of this function.
2018-10-15 12:20:31 -03:00
Jory Hogeveen
b85c142d97
Stop checking shop_manager role if the user also is an administrator
2018-10-15 17:15:53 +02:00
Jory Hogeveen
dfbe5174ef
Stop using `current_user_can` for validation roles.
...
Fixes #21568
2018-10-15 16:48:16 +02:00
Rodrigo Primo
7745cf084b
Merge pull request #21564 from woocommerce/akirk-patch-1
...
Fix typo revivew
2018-10-15 11:27:08 -03:00
Ron Rennick
1ea2d79dd6
Merge branch 'master' into issue_21515
2018-10-15 11:00:14 -03:00
Alex Kirk
3e7cf4be21
Fix typo revivew
2018-10-15 15:54:19 +02:00
Rodrigo Primo
212975c941
3.4.6 changelog
2018-10-15 09:41:54 -03:00
Gerhard
a41df43cb0
Do check on new key field instead and only run alter when not found.
2018-10-15 14:13:21 +02:00
Gerhard
d3e59b770b
Do not try and create primary key using upgrade routine, dbdelta does that automatically. Just drop the key if it exists and add a new unique key.
2018-10-15 14:07:48 +02:00
Gerhard
aa6a6f2b10
Refine numeric slug checking when using the products shortcode for attributes and categories.
2018-10-15 13:22:12 +02:00
Gerhard
48de1f6b97
Accommodate numeric slugs in the product shortcode attribute and category fields.
2018-10-15 12:49:56 +02:00
Jared Burke
4557108805
Fix some memory limit values not correctly converting to bytes
2018-10-15 01:26:45 -05:00
Mohammad Jangda
0590522180
Use wp_get_upload_dir for geolite DB path
...
By default, `wp_upload_dir` will "will create a subfolder in your Uploads folder corresponding to the queried month (or current month, if no $time argument is provided" (https://developer.wordpress.org/reference/functions/wp_upload_dir/ ).
This is not necessary in our case since all we want is the `basedir` value.
We're switching to `wp_get_upload_dir`, which is a wrapper for `wp_upload_dir` that turns of the folder create behaviour.
2018-10-13 01:27:45 -04:00
Ron Rennick
ec44a36913
only include erasure tools link in erasure desc_tip when user has manage_privacy_options, escape the desc_tip
2018-10-12 21:49:05 -03:00
Claudiu Lodromanean
74693979db
Merge pull request #21531 from wayheming/master
...
Fix cart notice position
2018-10-12 08:57:54 -07:00
Claudiu Lodromanean
e0d31107ea
Merge pull request #21523 from woocommerce/fix/21509
...
Fix DB log handler cleanup
2018-10-12 08:22:22 -07:00
claudiulodro
4be0018c09
Backwards compatibility in unit test
2018-10-11 13:31:37 -07:00
Claudio Sanches
06e5fe1fd8
Fixed coding standards in unit tests
2018-10-11 13:31:37 -07:00
Claudio Sanches
2f7f514f14
Fixed coding standards
2018-10-11 13:31:37 -07:00
claudiulodro
d1e9e85cbb
Extra safety
2018-10-11 13:31:37 -07:00
claudiulodro
c9c12c2518
Initial implementation
2018-10-11 13:31:37 -07:00
claudiulodro
cf96455559
Add test to verify issue
2018-10-11 13:31:37 -07:00
claudiulodro
d5ac2e4dee
Backwards compatibility handling
2018-10-11 13:31:34 -07:00
Claudio Sanches
09ed5fd152
Fixed coding standards
2018-10-11 13:31:34 -07:00
claudiulodro
bd7d73a788
Extra checking to make sure log file is in log file directory
2018-10-11 13:31:34 -07:00
claudiulodro
87b81c94ae
Better way of doing it
2018-10-11 13:31:34 -07:00
claudiulodro
3bbf05d025
Prevent deleting things outside the log dir
2018-10-11 13:31:34 -07:00
claudiulodro
5f2b915f18
Add filter for ease of extensions
2018-10-11 13:31:30 -07:00
claudiulodro
75bfc8e4bb
Add unit tests
2018-10-11 13:31:30 -07:00
claudiulodro
7ea4e7b1b5
Prevent role changing
2018-10-11 13:31:30 -07:00
claudiulodro
d6144a769e
Restrict shop managers to editing customers
2018-10-11 13:31:30 -07:00
Rodrigo Primo
b9c364a475
Add call to parent::tearDown()
...
It is usually necessary to call parent::tearDown(); when extending tearDown() to make sure WordPress cleanup routines are executed after each test.
2018-10-11 13:31:27 -07:00
claudiulodro
f2422a284a
Remove filter after running tests
2018-10-11 13:31:27 -07:00
claudiulodro
26b188569b
Add filter for disabling file path check
2018-10-11 13:31:27 -07:00
claudiulodro
acf8757636
Add path checking and fix bug
2018-10-11 13:31:27 -07:00
claudiulodro
7b19673dea
Extra file type checking
2018-10-11 13:31:27 -07:00
claudiulodro
b6f22d9950
Fix typo
2018-10-11 13:31:18 -07:00
claudiulodro
afd24dea4b
Add http(s) to // download urls
2018-10-11 13:31:18 -07:00
claudiulodro
e53e21d65f
Better variable name
2018-10-11 13:31:18 -07:00
claudiulodro
441fe32f0b
Add filetype checking for all files located on the server
2018-10-11 13:31:18 -07:00
claudiulodro
989230f2b9
Refactor for increased safety
2018-10-11 13:31:18 -07:00
claudiulodro
88d506bac0
Dont do abspath file_exists check on urls that start with // since those are remote urls and not local urls
2018-10-11 13:31:18 -07:00
Rodrigo Primo
2a08fa3a7b
Add test to check WC_Log_Handler_DB::delete_logs_before_timestamp() basic functionality
2018-10-11 15:25:12 -03:00