More specific error codes in the core upgrader when copying language, plugin, and theme files. see #22704.


git-svn-id: http://develop.svn.wordpress.org/trunk@25772 602fd350-edb4-49c9-b593-d223f7449a82
3.7-beta2-25773


git-svn-id: http://develop.svn.wordpress.org/trunk@25773 602fd350-edb4-49c9-b593-d223f7449a82
In unzip_file(), confirm we have enough available disk space before extracting.

"enough" is calculated by adding up the uncompressed size of the files in the archive, then adding a 20% buffer.

props dd32.
fixes #25576.


git-svn-id: http://develop.svn.wordpress.org/trunk@25774 602fd350-edb4-49c9-b593-d223f7449a82
In the upgrader, only print additional error data if it is a string.

As in [25576], we sometimes want to return additional data that is not necessarily meant for UI consumption.

see #25576.


git-svn-id: http://develop.svn.wordpress.org/trunk@25775 602fd350-edb4-49c9-b593-d223f7449a82
Account for possible failures by disk_free_space(), as well as the potential need to copy the unzipped files.

see #25576.


git-svn-id: http://develop.svn.wordpress.org/trunk@25776 602fd350-edb4-49c9-b593-d223f7449a82
Auto updates: Only attempt a roll back when we've hit a critical error code.

Specifically, this means when we've failed in copying files.

see #22704.


git-svn-id: http://develop.svn.wordpress.org/trunk@25777 602fd350-edb4-49c9-b593-d223f7449a82
Account for the possible failure of disk_free_space() in update_core().

see #22704, #25576.


git-svn-id: http://develop.svn.wordpress.org/trunk@25778 602fd350-edb4-49c9-b593-d223f7449a82
Remove PHP4 compat code from the ZipArchive unzip handler, and pass the failure reason into the WP_Error return.

See #22704


git-svn-id: http://develop.svn.wordpress.org/trunk@25779 602fd350-edb4-49c9-b593-d223f7449a82
Parse absolute paths out of error data. see #22704.


git-svn-id: http://develop.svn.wordpress.org/trunk@25780 602fd350-edb4-49c9-b593-d223f7449a82
Automatic updates: Include error data in the follow-up API request.

props dd32.
see #22704.


git-svn-id: http://develop.svn.wordpress.org/trunk@25781 602fd350-edb4-49c9-b593-d223f7449a82
Automatic updates: An error code containing 'do_rollback' can be used to trigger a rollback.

This could enable the triggering of a rollback in update_core() in wp-admin/includes/update-core.php.

see #22704.


git-svn-id: http://develop.svn.wordpress.org/trunk@25782 602fd350-edb4-49c9-b593-d223f7449a82
Hide auto updates from update-core.php directly in get_core_updates(). see #22704.


git-svn-id: http://develop.svn.wordpress.org/trunk@25783 602fd350-edb4-49c9-b593-d223f7449a82
Hide language-specific warnings/labels on update-core.php when we are dealing with a point release partial build.

see #22704, #18200.


git-svn-id: http://develop.svn.wordpress.org/trunk@25784 602fd350-edb4-49c9-b593-d223f7449a82
Test runner: Add @expectedIncorrectUsage to trap _doing_it_wrong() calls.

see #24813, #25282.


git-svn-id: http://develop.svn.wordpress.org/trunk@25785 602fd350-edb4-49c9-b593-d223f7449a82
Revert [25202] and enforce that wp_add_inline_style() does not want <style> tags.

Prior to 3.7, these tags were not printed (and thus needed to be provided), but only in the admin and when concatenation was enabled. They should never be required. Strip them when we find them and issue a notice for incorrect usage.

props atimmer, georgestephanis.
fixes #24813.


git-svn-id: http://develop.svn.wordpress.org/trunk@25786 602fd350-edb4-49c9-b593-d223f7449a82
Fix a misspelling of the filter we're checking for, s/fs_method/filesystem_method/.
My bad. See #22704, [25781].


git-svn-id: http://develop.svn.wordpress.org/trunk@25787 602fd350-edb4-49c9-b593-d223f7449a82