Dion Hulse
|
ccbfa3b52b
|
Do not check to see if parents of folders outside of the Destination folder exist within the Archive extractors, unzip_file() will take care of that area. Fixes #13741
git-svn-id: https://develop.svn.wordpress.org/trunk@15156 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-07 11:19:51 +00:00 |
|
Andrew Nacin
|
ae77738ff9
|
More request_filesystem_credentials() string improvements.
git-svn-id: https://develop.svn.wordpress.org/trunk@15130 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-03 18:58:41 +00:00 |
|
Andrew Nacin
|
fb0187a5a0
|
Add missing spaces.
git-svn-id: https://develop.svn.wordpress.org/trunk@15099 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-01 21:57:26 +00:00 |
|
Andrew Nacin
|
3c50fb2f00
|
Clarify the connection information requested in request_filesystem_credentials() to reduce confusion surrounding FTP information versus your WordPress login. see #13467, props jane.
git-svn-id: https://develop.svn.wordpress.org/trunk@15098 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-01 20:35:59 +00:00 |
|
Dion Hulse
|
da3b4b351e
|
Always fallback to PclZip in the event that ZipArchive does not return true. The PHP Zip extension is hit-and-miss with OSX generated zip files, sometimes 0 will be emitted and extraction will succeed, others it will fail with. Reverts r14346, r14377, partially r14800. See #12637. See #13491
git-svn-id: https://develop.svn.wordpress.org/trunk@15052 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-29 13:16:35 +00:00 |
|
Ryan Boren
|
aec821c651
|
Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@14924 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-26 02:42:15 +00:00 |
|
Dion Hulse
|
11fac78a37
|
Ensure that the entire folder structure exists within the $needed_folders array before attempting to create folders. Fixes cases where the Zip file does not contain a node for a folder which contains subfolders without files in the same level. Fixes #13171
git-svn-id: https://develop.svn.wordpress.org/trunk@14811 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-23 05:56:31 +00:00 |
|
Dion Hulse
|
d0a1400321
|
Correct the ZipArchive opening test logic. See #13491
git-svn-id: https://develop.svn.wordpress.org/trunk@14800 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-22 05:09:08 +00:00 |
|
Andrew Nacin
|
5aa7280d6a
|
Introduce wp_check_filetype_and_ext() to handle mime/ext image comparisons and corrections for upload and sideload. props Viper007Bond, see #11946.
git-svn-id: https://develop.svn.wordpress.org/trunk@14649 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-15 04:47:03 +00:00 |
|
Dion Hulse
|
1fc13e3b48
|
Silence PHP Warnings on is_writable calls. Can trigger open_basedir warnings on certain hosting environments. Props ocean90. Fixes #12866
git-svn-id: https://develop.svn.wordpress.org/trunk@14427 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 23:39:57 +00:00 |
|
Andrew Nacin
|
b2093dbdfd
|
Provide a context to wp_handle_upload to differentiate between upload and sideload. props technosailor, fixes #12740.
git-svn-id: https://develop.svn.wordpress.org/trunk@14418 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 22:16:48 +00:00 |
|
Ryan Boren
|
d783952469
|
Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 20:26:11 +00:00 |
|
Andrew Nacin
|
54c73c0c2b
|
Ensure image MIME type matches extension for images. props Viper007Bond, fixes #11946.
git-svn-id: https://develop.svn.wordpress.org/trunk@14400 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 20:17:01 +00:00 |
|
Dion Hulse
|
54c97bf8d1
|
Fix ZIP_ER_OK constant, Its a class constant, and only accessible as such under PHP5. Props sivel for noticing. Fixes #12637
git-svn-id: https://develop.svn.wordpress.org/trunk@14377 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 18:44:34 +00:00 |
|
Dion Hulse
|
bd807c6c5f
|
Skip over __MACOSX folders during zip extraction. Props chrisbliss18. Fixes #12637
git-svn-id: https://develop.svn.wordpress.org/trunk@14349 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-02 23:24:36 +00:00 |
|
Dion Hulse
|
6b49c70b09
|
Check for "ZIP_ER_OK" return value on ZipArchive. See #12637
git-svn-id: https://develop.svn.wordpress.org/trunk@14346 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-02 22:25:30 +00:00 |
|
Dion Hulse
|
8cbbe731a2
|
Replace use of tmpfile() with a safe get_temp_dir(). tmpfile() may use a temporary directly which is not writable. Add static caching to get_temp_dir() & better protect against bad server configs. Fixes #12866
git-svn-id: https://develop.svn.wordpress.org/trunk@14016 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-06 11:20:51 +00:00 |
|
Andrew Nacin
|
4c2edbc0d7
|
Adjust get_file_description() to account for absolute paths. see #12843
git-svn-id: https://develop.svn.wordpress.org/trunk@13994 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-04 12:07:27 +00:00 |
|
Andrew Nacin
|
812222bac3
|
Give names to author.php and tag.php in the theme editor.
git-svn-id: https://develop.svn.wordpress.org/trunk@13993 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-04 11:23:09 +00:00 |
|
Andrew Nacin
|
abd47187d1
|
Give editor-style.css a name in the theme editor.
git-svn-id: https://develop.svn.wordpress.org/trunk@13992 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-04 11:14:29 +00:00 |
|
Andrew Nacin
|
e34ca97ae0
|
Change @since 3.0 to @since 3.0.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13827 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-26 19:13:36 +00:00 |
|
Andrew Nacin
|
2f67d59255
|
Fix potential notice in wp_handle_sideload().
git-svn-id: https://develop.svn.wordpress.org/trunk@13825 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-26 17:42:34 +00:00 |
|
Ryan Boren
|
e61755c853
|
Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@13733 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-17 16:27:25 +00:00 |
|
Andrew Nacin
|
e22682a5dc
|
Fix logic and pull static code out of a loop. fixes #12581
git-svn-id: https://develop.svn.wordpress.org/trunk@13662 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-11 17:21:18 +00:00 |
|
Andrew Nacin
|
8d0a3589c9
|
Use disabled() form helper. fixes #12581
git-svn-id: https://develop.svn.wordpress.org/trunk@13661 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-11 17:12:23 +00:00 |
|
Andrew Nacin
|
c7fdac20df
|
Support for extra POST fields in WP_Filesystem. props dd32. see #12094
git-svn-id: https://develop.svn.wordpress.org/trunk@13577 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-03 19:53:39 +00:00 |
|
Ryan Boren
|
9e5b6d1f34
|
Pass overrides. Allow ref array calling. Props tychay. fixes #12278
git-svn-id: https://develop.svn.wordpress.org/trunk@13290 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-22 16:54:51 +00:00 |
|
Andrew Nacin
|
3f2c21e53f
|
Remove debug cruft. Fixes #12230
git-svn-id: https://develop.svn.wordpress.org/trunk@13223 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-19 14:12:12 +00:00 |
|
Dion Hulse
|
343447e5a0
|
Fallback to PclZip in the event that ZipArchive cannot handle a given archive properly. Close the Zip handle when we're done as well. Fixes #12230
git-svn-id: https://develop.svn.wordpress.org/trunk@13221 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-19 10:59:32 +00:00 |
|
Ryan Boren
|
86d7ef0b69
|
Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@13025 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-08 18:02:23 +00:00 |
|
Peter Westwood
|
77e592fead
|
Make _unzip_file_ziparchive() PHP4 safe. See #10403.
git-svn-id: https://develop.svn.wordpress.org/trunk@13015 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-07 21:28:05 +00:00 |
|
Dion Hulse
|
142262150e
|
PHPdoc for _unzip_file_pclzip & _unzip_file_ziparchive. See #10403
git-svn-id: https://develop.svn.wordpress.org/trunk@13007 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-07 05:07:36 +00:00 |
|
Dion Hulse
|
b8ebf2ee2c
|
Better error checking for ZipArchive extraction. See #10403
git-svn-id: https://develop.svn.wordpress.org/trunk@13006 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-07 05:02:24 +00:00 |
|
Dion Hulse
|
1419d92ddf
|
Introduce ZipArchive version of unzip_file(), More efficient on memory usage for supporting hosts. See #10403
git-svn-id: https://develop.svn.wordpress.org/trunk@13005 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-07 04:52:35 +00:00 |
|
Ryan Boren
|
0399d5c023
|
ms-functions pruning and cleanup. Props nacin. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12948 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-04 18:57:32 +00:00 |
|
Dion Hulse
|
bdc99b016a
|
Optimised unzip_file(), reduces is_dir() IO calls. See #10779
git-svn-id: https://develop.svn.wordpress.org/trunk@12794 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-01-22 11:02:09 +00:00 |
|
Ryan Boren
|
2e46e81309
|
i18n fixes. Props nbachiyski. fixes #11954
git-svn-id: https://develop.svn.wordpress.org/trunk@12789 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-01-21 21:37:43 +00:00 |
|
Ryan Boren
|
e2adfc832a
|
Coding standards, space after if
git-svn-id: https://develop.svn.wordpress.org/trunk@12752 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-01-18 20:34:48 +00:00 |
|
Ryan Boren
|
8ef8b7bad5
|
Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-01-15 22:11:12 +00:00 |
|
Dion Hulse
|
76592af8d8
|
Standardise WP_Filesystem_*::put_contents() arguments to support chmod reliably across all transports. Fixes #10889
git-svn-id: https://develop.svn.wordpress.org/trunk@12723 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-01-14 09:23:53 +00:00 |
|
Andrew Ozz
|
c3f5b583bc
|
Replace ctype_digit() with is_numeric() for better compatibility, props markup, fixes #11620 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12544 602fd350-edb4-49c9-b593-d223f7449a82
|
2009-12-26 08:47:47 +00:00 |
|
Ryan Boren
|
f79d69c71b
|
Check upload_tmp_dir ini settings for a usable temporary path. Props Denis-de-Bernardy. fixes #6699
git-svn-id: https://develop.svn.wordpress.org/trunk@12519 602fd350-edb4-49c9-b593-d223f7449a82
|
2009-12-23 16:22:26 +00:00 |
|
Ryan Boren
|
9ff30116e7
|
Increase download_url() timeout to 5 minutes. fixes #11551 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12489 602fd350-edb4-49c9-b593-d223f7449a82
|
2009-12-22 16:42:30 +00:00 |
|
Ryan Boren
|
0042fa7b7c
|
Fix file validation in theme editor. Props dd32. fixes #11032
git-svn-id: https://develop.svn.wordpress.org/trunk@12310 602fd350-edb4-49c9-b593-d223f7449a82
|
2009-12-01 22:03:13 +00:00 |
|
Ryan Boren
|
3821d10f89
|
Fix wpfs root dir location. Props dd32. fixes #11152
git-svn-id: https://develop.svn.wordpress.org/trunk@12268 602fd350-edb4-49c9-b593-d223f7449a82
|
2009-11-23 21:52:13 +00:00 |
|
Andrew Ozz
|
4a79139c26
|
Fix typo, props Harald Nesland, fixes #11002
git-svn-id: https://develop.svn.wordpress.org/trunk@12152 602fd350-edb4-49c9-b593-d223f7449a82
|
2009-11-06 10:53:41 +00:00 |
|
Andrew Ozz
|
92d16fba05
|
Add phpdoc and extra filter to file.php, props dd32, fixes #11002
git-svn-id: https://develop.svn.wordpress.org/trunk@12151 602fd350-edb4-49c9-b593-d223f7449a82
|
2009-11-05 23:03:48 +00:00 |
|
Ryan Boren
|
af42a894f0
|
Bring in wp_handle_upload_prefilter from MU
git-svn-id: https://develop.svn.wordpress.org/trunk@12142 602fd350-edb4-49c9-b593-d223f7449a82
|
2009-11-05 14:24:20 +00:00 |
|
Peter Westwood
|
2fac03c837
|
Handle the file upload case on import when post_max_size is smaller than upload_max_filesize and no POST data arrives at all. Fixes #10830.
git-svn-id: https://develop.svn.wordpress.org/trunk@11963 602fd350-edb4-49c9-b593-d223f7449a82
|
2009-09-23 07:06:58 +00:00 |
|
Ryan Boren
|
43c201d458
|
Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11930 602fd350-edb4-49c9-b593-d223f7449a82
|
2009-09-14 14:03:32 +00:00 |
|