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
This commit is contained in:
parent
b8ebf2ee2c
commit
142262150e
@ -534,6 +534,19 @@ function unzip_file($file, $to) {
|
||||
return _unzip_file_pclzip($file, $to, $needed_dirs);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the ZipArchive class.
|
||||
* Assumes that WP_Filesystem() has already been called and set up.
|
||||
*
|
||||
* @since 3.0
|
||||
* @see unzip_file
|
||||
* @access private
|
||||
*
|
||||
* @param string $file Full path and filename of zip archive
|
||||
* @param string $to Full path on the filesystem to extract archive to
|
||||
* @param array $needed_dirs A partial list of required folders needed to be created.
|
||||
* @return mixed WP_Error on failure, True on success
|
||||
*/
|
||||
function _unzip_file_ziparchive($file, $to, $needed_dirs = array()) {
|
||||
global $wp_filesystem;
|
||||
|
||||
@ -579,6 +592,19 @@ function _unzip_file_ziparchive($file, $to, $needed_dirs = array()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function should not be called directly, use unzip_file instead. Attempts to unzip an archive using the PclZip library.
|
||||
* Assumes that WP_Filesystem() has already been called and set up.
|
||||
*
|
||||
* @since 3.0
|
||||
* @see unzip_file
|
||||
* @access private
|
||||
*
|
||||
* @param string $file Full path and filename of zip archive
|
||||
* @param string $to Full path on the filesystem to extract archive to
|
||||
* @param array $needed_dirs A partial list of required folders needed to be created.
|
||||
* @return mixed WP_Error on failure, True on success
|
||||
*/
|
||||
function _unzip_file_pclzip($file, $to, $needed_dirs = array()) {
|
||||
global $wp_filesystem;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user