mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 22:24:36 +00:00
Add @global annotations for wp-admin/*.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -50,7 +50,7 @@ $wp_file_descriptions = array(
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @uses $wp_file_descriptions
|
||||
* @global array $wp_file_descriptions
|
||||
* @param string $file Filesystem path or filename
|
||||
* @return string Description of file from $wp_file_descriptions or basename of $file if description doesn't exist
|
||||
*/
|
||||
@@ -516,6 +516,8 @@ function verify_file_md5( $filename, $expected_md5 ) {
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||
*
|
||||
* @param string $file Full path and filename of zip archive
|
||||
* @param string $to Full path on the filesystem to extract archive to
|
||||
* @return mixed WP_Error on failure, True on success
|
||||
@@ -579,6 +581,8 @@ function unzip_file($file, $to) {
|
||||
* @see unzip_file
|
||||
* @access private
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||
*
|
||||
* @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.
|
||||
@@ -677,6 +681,8 @@ function _unzip_file_ziparchive($file, $to, $needed_dirs = array() ) {
|
||||
* @see unzip_file
|
||||
* @access private
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||
*
|
||||
* @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.
|
||||
@@ -769,6 +775,8 @@ function _unzip_file_pclzip($file, $to, $needed_dirs = array()) {
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||
*
|
||||
* @param string $from source directory
|
||||
* @param string $to destination directory
|
||||
* @param array $skip_list a list of files/folders to skip copying
|
||||
@@ -823,6 +831,8 @@ function copy_dir($from, $to, $skip_list = array() ) {
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global WP_Filesystem_Base $wp_filesystem Subclass
|
||||
*
|
||||
* @param array|false $args Optional. Connection args, These are passed directly to
|
||||
* the `WP_Filesystem_*()` classes. Default false.
|
||||
* @param string|false $context Optional. Context for get_filesystem_method(). Default false.
|
||||
@@ -900,6 +910,8 @@ function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global callback $_wp_filesystem_direct_method
|
||||
*
|
||||
* @param array $args Optional. Connection details. Default empty array.
|
||||
* @param string $context Optional. Full path to the directory that is tested
|
||||
* for being writable. Default false.
|
||||
|
||||
Reference in New Issue
Block a user