Docs: Use consistent description for `$wp_filesystem` global.

See #42505.

git-svn-id: https://develop.svn.wordpress.org/trunk@42777 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2018-03-04 21:57:10 +00:00
parent fa1ce009b5
commit e0b16ef59c
11 changed files with 24 additions and 24 deletions

View File

@ -3634,7 +3634,7 @@ function wp_ajax_save_wporg_username() {
* *
* @see Theme_Upgrader * @see Theme_Upgrader
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
*/ */
function wp_ajax_install_theme() { function wp_ajax_install_theme() {
check_ajax_referer( 'updates' ); check_ajax_referer( 'updates' );
@ -3753,7 +3753,7 @@ function wp_ajax_install_theme() {
* *
* @see Theme_Upgrader * @see Theme_Upgrader
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
*/ */
function wp_ajax_update_theme() { function wp_ajax_update_theme() {
check_ajax_referer( 'updates' ); check_ajax_referer( 'updates' );
@ -3848,7 +3848,7 @@ function wp_ajax_update_theme() {
* *
* @see delete_theme() * @see delete_theme()
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
*/ */
function wp_ajax_delete_theme() { function wp_ajax_delete_theme() {
check_ajax_referer( 'updates' ); check_ajax_referer( 'updates' );
@ -3920,7 +3920,7 @@ function wp_ajax_delete_theme() {
* *
* @see Plugin_Upgrader * @see Plugin_Upgrader
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
*/ */
function wp_ajax_install_plugin() { function wp_ajax_install_plugin() {
check_ajax_referer( 'updates' ); check_ajax_referer( 'updates' );
@ -4027,7 +4027,7 @@ function wp_ajax_install_plugin() {
* *
* @see Plugin_Upgrader * @see Plugin_Upgrader
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
*/ */
function wp_ajax_update_plugin() { function wp_ajax_update_plugin() {
check_ajax_referer( 'updates' ); check_ajax_referer( 'updates' );
@ -4134,7 +4134,7 @@ function wp_ajax_update_plugin() {
* *
* @see delete_plugins() * @see delete_plugins()
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
*/ */
function wp_ajax_delete_plugin() { function wp_ajax_delete_plugin() {
check_ajax_referer( 'updates' ); check_ajax_referer( 'updates' );

View File

@ -43,7 +43,7 @@ class Core_Upgrader extends WP_Upgrader {
* *
* @since 2.8.0 * @since 2.8.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* @global callable $_wp_filesystem_direct_method * @global callable $_wp_filesystem_direct_method
* *
* @param object $current Response object for whether WordPress is current. * @param object $current Response object for whether WordPress is current.

View File

@ -149,7 +149,7 @@ class Language_Pack_Upgrader extends WP_Upgrader {
* *
* @since 3.7.0 * @since 3.7.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param array $language_updates Optional. Language pack updates. Default empty array. * @param array $language_updates Optional. Language pack updates. Default empty array.
* @param array $args { * @param array $args {

View File

@ -334,7 +334,7 @@ class Plugin_Upgrader extends WP_Upgrader {
* *
* @since 3.3.0 * @since 3.3.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param string $source The path to the downloaded package source. * @param string $source The path to the downloaded package source.
* @return string|WP_Error The source as passed, or a WP_Error object * @return string|WP_Error The source as passed, or a WP_Error object
@ -443,7 +443,7 @@ class Plugin_Upgrader extends WP_Upgrader {
* *
* @since 2.8.0 * @since 2.8.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param bool|WP_Error $removed * @param bool|WP_Error $removed
* @param string $local_destination * @param string $local_destination

View File

@ -447,7 +447,7 @@ class Theme_Upgrader extends WP_Upgrader {
* *
* @since 3.3.0 * @since 3.3.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param string $source The full path to the package source. * @param string $source The full path to the package source.
* @return string|WP_Error The source or a WP_Error. * @return string|WP_Error The source or a WP_Error.

View File

@ -173,7 +173,7 @@ class WP_Upgrader {
* *
* @since 2.8.0 * @since 2.8.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param array $directories Optional. A list of directories. If any of these do * @param array $directories Optional. A list of directories. If any of these do
* not exist, a WP_Error object will be returned. * not exist, a WP_Error object will be returned.
@ -289,7 +289,7 @@ class WP_Upgrader {
* *
* @since 2.8.0 * @since 2.8.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param string $package Full path to the package file. * @param string $package Full path to the package file.
* @param bool $delete_package Optional. Whether to delete the package file after attempting * @param bool $delete_package Optional. Whether to delete the package file after attempting
@ -371,7 +371,7 @@ class WP_Upgrader {
* *
* @since 4.3.0 * @since 4.3.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param string $remote_destination The location on the remote filesystem to be cleared * @param string $remote_destination The location on the remote filesystem to be cleared
* @return bool|WP_Error True upon success, WP_Error on failure. * @return bool|WP_Error True upon success, WP_Error on failure.
@ -423,7 +423,7 @@ class WP_Upgrader {
* *
* @since 2.8.0 * @since 2.8.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* @global array $wp_theme_directories * @global array $wp_theme_directories
* *
* @param array|string $args { * @param array|string $args {

View File

@ -1075,7 +1075,7 @@ function verify_file_md5( $filename, $expected_md5 ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @global WP_Filesystem_Base $wp_filesystem subclass. * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param string $file Full path and filename of ZIP archive. * @param string $file Full path and filename of ZIP archive.
* @param string $to Full path on the filesystem to extract archive to. * @param string $to Full path on the filesystem to extract archive to.
@ -1147,7 +1147,7 @@ function unzip_file( $file, $to ) {
* @see unzip_file() * @see unzip_file()
* @access private * @access private
* *
* @global WP_Filesystem_Base $wp_filesystem subclass. * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param string $file Full path and filename of ZIP archive. * @param string $file Full path and filename of ZIP archive.
* @param string $to Full path on the filesystem to extract archive to. * @param string $to Full path on the filesystem to extract archive to.
@ -1274,7 +1274,7 @@ function _unzip_file_ziparchive( $file, $to, $needed_dirs = array() ) {
* @see unzip_file() * @see unzip_file()
* @access private * @access private
* *
* @global WP_Filesystem_Base $wp_filesystem subclass. * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param string $file Full path and filename of ZIP archive. * @param string $file Full path and filename of ZIP archive.
* @param string $to Full path on the filesystem to extract archive to. * @param string $to Full path on the filesystem to extract archive to.
@ -1385,7 +1385,7 @@ function _unzip_file_pclzip( $file, $to, $needed_dirs = array() ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @global WP_Filesystem_Base $wp_filesystem subclass. * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param string $from Source directory. * @param string $from Source directory.
* @param string $to Destination directory. * @param string $to Destination directory.
@ -1447,7 +1447,7 @@ function copy_dir( $from, $to, $skip_list = array() ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @global WP_Filesystem_Base $wp_filesystem subclass. * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param array|false $args Optional. Connection args, These are passed directly to * @param array|false $args Optional. Connection args, These are passed directly to
* the `WP_Filesystem_*()` classes. Default false. * the `WP_Filesystem_*()` classes. Default false.

View File

@ -812,7 +812,7 @@ function activate_plugins( $plugins, $redirect = '', $network_wide = false, $sil
* *
* @since 2.6.0 * @since 2.6.0
* *
* @global WP_Filesystem_Base $wp_filesystem * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param array $plugins List of plugins to delete. * @param array $plugins List of plugins to delete.
* @param string $deprecated Deprecated. * @param string $deprecated Deprecated.

View File

@ -11,7 +11,7 @@
* *
* @since 2.8.0 * @since 2.8.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param string $stylesheet Stylesheet of the theme to delete * @param string $stylesheet Stylesheet of the theme to delete
* @param string $redirect Redirect to page when complete. * @param string $redirect Redirect to page when complete.

View File

@ -860,7 +860,7 @@ $_new_bundled_files = array(
* *
* @since 2.7.0 * @since 2.7.0
* *
* @global WP_Filesystem_Base $wp_filesystem * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* @global array $_old_files * @global array $_old_files
* @global array $_new_bundled_files * @global array $_new_bundled_files
* @global wpdb $wpdb * @global wpdb $wpdb

View File

@ -455,7 +455,7 @@ function list_translation_updates() {
* *
* @since 2.7.0 * @since 2.7.0
* *
* @global WP_Filesystem_Base $wp_filesystem Subclass * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
* *
* @param bool $reinstall * @param bool $reinstall
*/ */