nacin
|
da2732c7de
|
Use wp_remote_retrieve_* helper functions instead of the raw HTTP response array. props aaroncampbell, fixes #17416.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-05-14 19:45:07 +00:00 |
|
westi
|
80f4e83a8c
|
Introduce WP_MAX_MEMORY_LIMIT constant for the high memory limit we set when image processing and unzipping.
Ensure it is always filterable by plugins as well as configurable in wp-config
Fixes #13847 props hakre
git-svn-id: http://svn.automattic.com/wordpress/trunk@17749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-28 16:25:36 +00:00 |
|
dd32
|
bed23730dc
|
Handle zip error's in PclZip better. PclZip::extract() returns an array on success, 0 on failure. Fixes #17224
git-svn-id: http://svn.automattic.com/wordpress/trunk@17693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-23 14:30:44 +00:00 |
|
dd32
|
9081c7636c
|
Set the mb_string internal encoding to ISO-8859-1 whilst uncompressing archives using PclZip. Fixes 'PCLZIP_ERR_BAD_FORMAT (-10) : Invalid block size' errors on systems utilising mbstring.func_overload. Fixes #15789
git-svn-id: http://svn.automattic.com/wordpress/trunk@17592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-03 12:32:06 +00:00 |
|
dd32
|
5b12ecb83d
|
Be a party-pooper; No more Akismet Dancing upon upgrade; Respect custom WP_CONTENT_DIR for bundled plugins/theme installation; Respect custom WP_CONTENT_DIR/WP_LANG_DIR for Language files when upgrading; Standardise WP_Filesystem path method returns (They're trailing slash'd). Adds an exclusion list to copy_dir() as well as WP_Filesystem_Base::wp_lang_dir(). See #14484 See #11495
git-svn-id: http://svn.automattic.com/wordpress/trunk@17576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-03-31 13:28:36 +00:00 |
|
dd32
|
00dc7a57d6
|
First run of introducing Stream-To-File for the WP_HTTP API. Reduces memory consumption during file downloads. Implemented in download_url() for upgraders. Props sivel. See #16236
git-svn-id: http://svn.automattic.com/wordpress/trunk@17555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-03-25 02:42:20 +00:00 |
|
dd32
|
a83a2842ea
|
Optimisations to WP_Filesystem; Pass known information to called functions. Props aldenta (John Ford) for investigation and patch. See #10913
git-svn-id: http://svn.automattic.com/wordpress/trunk@17525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-03-22 00:04:15 +00:00 |
|
nacin
|
53d0af84b0
|
Don't esc_html the default error string. props SergeyBiryukov, fixes #16058.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-01-01 22:14:42 +00:00 |
|
nacin
|
e5b099a459
|
Add missing translation for 'Page Template' in the theme editor. props SergeyBiryukov, fixes #15933.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-21 14:58:54 +00:00 |
|
westi
|
1bb4914c3a
|
Allow for the callee of download_url() to specify a different timeout if they want to - maybe they don't want to wait that long.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-07 12:45:24 +00:00 |
|
nacin
|
5021403b9d
|
Add 'Visual Editor RTL Stylesheet' to the list of theme file descriptions. see #15672.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-04 04:22:48 +00:00 |
|
markjaquith
|
ad6e83136d
|
Improve the wording of the file upload security message. props janeforshort. fixes #13550
git-svn-id: http://svn.automattic.com/wordpress/trunk@16577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-11-24 20:45:21 +00:00 |
|
ryan
|
847499e531
|
Pinking shears
git-svn-id: http://svn.automattic.com/wordpress/trunk@16438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-11-17 18:47:34 +00:00 |
|
nacin
|
d81d7b7f4a
|
Some escaping
git-svn-id: http://svn.automattic.com/wordpress/trunk@16366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-11-14 17:33:16 +00:00 |
|
markjaquith
|
fc6e89da45
|
Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064
git-svn-id: http://svn.automattic.com/wordpress/trunk@16061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-10-28 21:56:43 +00:00 |
|
nacin
|
82b1349664
|
Docs for wp-admin/includes/file.php. props sivel, see #14783.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-10-27 22:24:06 +00:00 |
|
nacin
|
1dee100f3a
|
Fix typo. props mrmist, fixes #14571.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-09-07 15:11:43 +00:00 |
|
dd32
|
fe5e3d0fb6
|
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: http://svn.automattic.com/wordpress/trunk@15156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-06-07 11:19:51 +00:00 |
|
nacin
|
3ba9fc235c
|
More request_filesystem_credentials() string improvements.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-06-03 18:58:41 +00:00 |
|
nacin
|
80437ca9e1
|
Add missing spaces.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-06-01 21:57:26 +00:00 |
|
nacin
|
09c448f63e
|
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: http://svn.automattic.com/wordpress/trunk@15098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-06-01 20:35:59 +00:00 |
|
dd32
|
92eeafce24
|
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: http://svn.automattic.com/wordpress/trunk@15052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-29 13:16:35 +00:00 |
|
ryan
|
1a552dd029
|
Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@14924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-26 02:42:15 +00:00 |
|
dd32
|
989a52d7ff
|
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: http://svn.automattic.com/wordpress/trunk@14811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-23 05:56:31 +00:00 |
|
dd32
|
f8111531f4
|
Correct the ZipArchive opening test logic. See #13491
git-svn-id: http://svn.automattic.com/wordpress/trunk@14800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-22 05:09:08 +00:00 |
|
nacin
|
7c8a77efa3
|
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: http://svn.automattic.com/wordpress/trunk@14649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-15 04:47:03 +00:00 |
|
dd32
|
72f99c8a96
|
Silence PHP Warnings on is_writable calls. Can trigger open_basedir warnings on certain hosting environments. Props ocean90. Fixes #12866
git-svn-id: http://svn.automattic.com/wordpress/trunk@14427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-03 23:39:57 +00:00 |
|
nacin
|
248f4ab860
|
Provide a context to wp_handle_upload to differentiate between upload and sideload. props technosailor, fixes #12740.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-03 22:16:48 +00:00 |
|
ryan
|
7b7243d94a
|
Strip trailing whites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-03 20:26:11 +00:00 |
|
nacin
|
efa2e9d397
|
Ensure image MIME type matches extension for images. props Viper007Bond, fixes #11946.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-03 20:17:01 +00:00 |
|
dd32
|
79bb63a4e0
|
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: http://svn.automattic.com/wordpress/trunk@14377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-03 18:44:34 +00:00 |
|
dd32
|
2db60de875
|
Skip over __MACOSX folders during zip extraction. Props chrisbliss18. Fixes #12637
git-svn-id: http://svn.automattic.com/wordpress/trunk@14349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-02 23:24:36 +00:00 |
|
dd32
|
3213eab0f8
|
Check for "ZIP_ER_OK" return value on ZipArchive. See #12637
git-svn-id: http://svn.automattic.com/wordpress/trunk@14346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-05-02 22:25:30 +00:00 |
|
dd32
|
d5ee7bca10
|
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: http://svn.automattic.com/wordpress/trunk@14016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-06 11:20:51 +00:00 |
|
nacin
|
f925c3c2b4
|
Adjust get_file_description() to account for absolute paths. see #12843
git-svn-id: http://svn.automattic.com/wordpress/trunk@13994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-04 12:07:27 +00:00 |
|
nacin
|
37faed2c03
|
Give names to author.php and tag.php in the theme editor.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-04 11:23:09 +00:00 |
|
nacin
|
6182fa89af
|
Give editor-style.css a name in the theme editor.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-04-04 11:14:29 +00:00 |
|
nacin
|
a7feaed0e6
|
Change @since 3.0 to @since 3.0.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-26 19:13:36 +00:00 |
|
nacin
|
6e0976117a
|
Fix potential notice in wp_handle_sideload().
git-svn-id: http://svn.automattic.com/wordpress/trunk@13825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-26 17:42:34 +00:00 |
|
ryan
|
e25a65b36a
|
Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@13733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-17 16:27:25 +00:00 |
|
nacin
|
f6415fc7eb
|
Fix logic and pull static code out of a loop. fixes #12581
git-svn-id: http://svn.automattic.com/wordpress/trunk@13662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-11 17:21:18 +00:00 |
|
nacin
|
20eae9d24a
|
Use disabled() form helper. fixes #12581
git-svn-id: http://svn.automattic.com/wordpress/trunk@13661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-11 17:12:23 +00:00 |
|
nacin
|
c4fa74306d
|
Support for extra POST fields in WP_Filesystem. props dd32. see #12094
git-svn-id: http://svn.automattic.com/wordpress/trunk@13577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-03-03 19:53:39 +00:00 |
|
ryan
|
a55b30dcaf
|
Pass overrides. Allow ref array calling. Props tychay. fixes #12278
git-svn-id: http://svn.automattic.com/wordpress/trunk@13290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-22 16:54:51 +00:00 |
|
nacin
|
364b9b0ffb
|
Remove debug cruft. Fixes #12230
git-svn-id: http://svn.automattic.com/wordpress/trunk@13223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-19 14:12:12 +00:00 |
|
dd32
|
9d23c565bd
|
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: http://svn.automattic.com/wordpress/trunk@13221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-19 10:59:32 +00:00 |
|
ryan
|
c9d92fc859
|
Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@13025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-08 18:02:23 +00:00 |
|
westi
|
5128c1ccc2
|
Make _unzip_file_ziparchive() PHP4 safe. See #10403.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-07 21:28:05 +00:00 |
|
dd32
|
ca925d3bfa
|
PHPdoc for _unzip_file_pclzip & _unzip_file_ziparchive. See #10403
git-svn-id: http://svn.automattic.com/wordpress/trunk@13007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-07 05:07:36 +00:00 |
|
dd32
|
5b6d0357b2
|
Better error checking for ZipArchive extraction. See #10403
git-svn-id: http://svn.automattic.com/wordpress/trunk@13006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-02-07 05:02:24 +00:00 |
|