Commit Graph

59 Commits

Author SHA1 Message Date
Dion Hulse b47a1a46e5 WP_Filesystem: Return symlinked directory names correctly, previously the FTP extensions would return it as 'source -> dest' instead of simply 'source'. Props kurtpayne. Fixes #17846
git-svn-id: https://develop.svn.wordpress.org/trunk@21223 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-06 11:39:39 +00:00
Ryan Boren 2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Dion Hulse b158ddc175 WP_Filesystem_*::mkdir() untrailingslash path consistently, don't waste time attempting to create an "empty" path. See #15575. Props lordandrei and SergeyBiryukov for initial patches.
git-svn-id: https://develop.svn.wordpress.org/trunk@18964 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-13 10:43:38 +00:00
Jon Cave 60d321b14b Fix typos in documentation (wp-admin/). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18632 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 14:18:10 +00:00
Ryan Boren 9730cb8d15 Constructor cleanup. Props ocean90. fixes #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-29 20:05:12 +00:00
Dion Hulse 1359ecd06b Optimisations to WP_Filesystem; Pass known information to called functions. Props aldenta (John Ford) for investigation and patch. See #10913
git-svn-id: https://develop.svn.wordpress.org/trunk@17525 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-22 00:04:15 +00:00
Dion Hulse 792509c0be Reinstate the custom chmod value in FtpExt. Accidentally removed in r12998. Props reaperhulk. Fixes #13667
git-svn-id: https://develop.svn.wordpress.org/trunk@15086 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-01 04:11:29 +00:00
Dion Hulse 73da12c509 Return false on WP_Filesystem_FTPext::dirlist() for non-existant folders. See #12232. See #12057
git-svn-id: https://develop.svn.wordpress.org/trunk@14120 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-17 04:00:59 +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
Dion Hulse 7eeb87b8d2 Fix typo in r13850. See #12232
git-svn-id: https://develop.svn.wordpress.org/trunk@13869 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 08:23:46 +00:00
Dion Hulse 244addfc0d Attempt to work around Mac FTP Server security implications of using '-a' in FTP. Props eoinomurchu. See #12232
git-svn-id: https://develop.svn.wordpress.org/trunk@13850 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 01:07:03 +00:00
Andrew Nacin dd306def81 Remove redundant isset() and empty() checks.
git-svn-id: https://develop.svn.wordpress.org/trunk@13770 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:29:21 +00:00
Andrew Nacin d7adf00e0e s/existant/existent/
git-svn-id: https://develop.svn.wordpress.org/trunk@13380 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 20:01:37 +00:00
Andrew Nacin 0fc1312800 Use stripos() instead of strpos() with strtolower(). For PHP < 5 we have stripos() in compat.php. Fixes #11176
git-svn-id: https://develop.svn.wordpress.org/trunk@13132 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 02:27:19 +00:00
Dion Hulse eff9f9e25b Standardise return values in WP_Filesystem::dirlist(), ::chmod() and ::exists()
git-svn-id: https://develop.svn.wordpress.org/trunk@12999 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 01:59:30 +00:00
Dion Hulse c6aa08558a Reduce code duplication, Formatting cleanups, Reduce Chmod IO calls. See #10913 for excess IO calls.
git-svn-id: https://develop.svn.wordpress.org/trunk@12998 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 01:31:40 +00:00
Dion Hulse bb80851161 Fix recursive chmod for WP_Filesystem. Props reaperhulk for FtpExt. Fixes #11261
git-svn-id: https://develop.svn.wordpress.org/trunk@12997 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 01:12:29 +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
Ryan Boren 8da73e044d Pass correct number of args to ftp_chdir(). Props Denis-de-Bernardy. see #10889
git-svn-id: https://develop.svn.wordpress.org/trunk@12369 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 23:03:25 +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 707676f0ac Include 'hidden' directories in filesystem dirlist by default, props dd32, fixes #10774
git-svn-id: https://develop.svn.wordpress.org/trunk@11934 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-15 02:21:00 +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
Andrew Ozz 38ac50b6eb WP_Filesystem fixes and phpdoc, props hakre dd32, see #10304
git-svn-id: https://develop.svn.wordpress.org/trunk@11831 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-16 08:34:53 +00:00
Andrew Ozz 10cd9df0ae Add constants for ftp connections timeouts, props dd32, see #10522
git-svn-id: https://develop.svn.wordpress.org/trunk@11823 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-15 12:01:04 +00:00
Andrew Ozz 6e39ca2cb0 Fix WP_Filesystem_FTPext->exists(), props dd32, fixes #10060
git-svn-id: https://develop.svn.wordpress.org/trunk@11821 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-15 08:31:06 +00:00
Peter Westwood 89249d1f77 Fix plugin/theme upgrade issues when using ftp extension. Fixes #9980 props DD32.
git-svn-id: https://develop.svn.wordpress.org/trunk@11495 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-30 17:14:07 +00:00
Ryan Boren d77d35e502 Check if not exists and not is_dir before bailing. Props st3ff3n. fixes #9274
git-svn-id: https://develop.svn.wordpress.org/trunk@11082 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-24 17:12:21 +00:00
Ryan Boren 603fba4ad4 consolidate plugin/theme/core upgrade/install functions. Props DD32. see #7875
git-svn-id: https://develop.svn.wordpress.org/trunk@11005 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-19 19:36:28 +00:00
Ryan Boren 077e5b20e9 Revert FTP parts of [10919]. fixes #9535 see #9525
git-svn-id: https://develop.svn.wordpress.org/trunk@10930 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-14 17:16:44 +00:00
Ryan Boren 99e1a865d0 WPFS cleanups. Props DD32. fixes #9525
git-svn-id: https://develop.svn.wordpress.org/trunk@10919 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-13 16:11:02 +00:00
Ryan Boren baaaa352ba Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 18:03:31 +00:00
Peter Westwood cc2ad7b801 Switch the ftpext filesystem to use Passive FTP aswell. Fixes #7940 props mcs_trekkie.
git-svn-id: https://develop.svn.wordpress.org/trunk@9833 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-21 17:59:15 +00:00
Peter Westwood 55ebbd699f Autodetect binary files for FTP filesystems. Fixes #7568 props DD32.
git-svn-id: https://develop.svn.wordpress.org/trunk@8990 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-26 06:53:57 +00:00
Ryan Boren eb093c7182 Don't append HTTPOnly if cookie domain is empty. see #7677
git-svn-id: https://develop.svn.wordpress.org/trunk@8811 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-05 05:35:58 +00:00
Peter Westwood ab17f7283c phpdoc for wp-admin. See #7496 props santosj.
git-svn-id: https://develop.svn.wordpress.org/trunk@8645 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-14 06:30:38 +00:00
Ryan Boren 2272a1a950 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Peter Westwood 0d522c3898 Plugin Install GSOC project first code drop. Props DD32 see #6015.
git-svn-id: https://develop.svn.wordpress.org/trunk@8540 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-04 21:01:09 +00:00
Ryan Boren 83ff7f5e58 Make WP_Filesystem work with new directory constants. Props DD32. fixes #7059
git-svn-id: https://develop.svn.wordpress.org/trunk@8009 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-29 17:29:32 +00:00
Ryan Boren 6cc11cbf1e Allow wp-content to exist outside of webroot. Props sambauers. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@7999 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-27 17:55:24 +00:00
Ryan Boren 90571b05c1 FTP find_base_dir fixes from DD32. see #5586
git-svn-id: https://develop.svn.wordpress.org/trunk@7443 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-21 05:15:21 +00:00
Ryan Boren 222de67dca Check return of tmpfile(). see #5586
git-svn-id: https://develop.svn.wordpress.org/trunk@7403 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-19 20:36:23 +00:00
Ryan Boren 045e4af5d0 Fix typo in ftpext class. Handle safe mode errors. PRops DD32. see #5586
git-svn-id: https://develop.svn.wordpress.org/trunk@7393 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-19 02:46:27 +00:00
Ryan Boren 7fa4f4fece Basedir location fixes for ftp fs from DD32. see #6245
git-svn-id: https://develop.svn.wordpress.org/trunk@7369 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-18 00:13:11 +00:00
Ryan Boren f0b35af5b9 Fix var name. see #6236
git-svn-id: https://develop.svn.wordpress.org/trunk@7335 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-16 18:19:42 +00:00
Ryan Boren 4557a4440f find_base_dir fixes from DD32. see #6245
git-svn-id: https://develop.svn.wordpress.org/trunk@7328 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-16 09:50:35 +00:00
Ryan Boren e9a73beaca FTP CWD fixes from DD32. see #6245
git-svn-id: https://develop.svn.wordpress.org/trunk@7327 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-16 09:49:10 +00:00
Ryan Boren 79f4ab9a35 i18n fixes from nbachiyski. fixes #6226
git-svn-id: https://develop.svn.wordpress.org/trunk@7300 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-14 19:56:43 +00:00
Ryan Boren 40da1d6412 Auto update fixes from DD32. see #5586
git-svn-id: https://develop.svn.wordpress.org/trunk@7238 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-11 16:37:44 +00:00
Ryan Boren 16185d747b wpfs fixes from DD32. see #5586
git-svn-id: https://develop.svn.wordpress.org/trunk@7164 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-06 06:06:13 +00:00