From e87d86b2ae1ffc48660a8fdced256ef3f94e8236 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 21 Aug 2020 00:41:43 +0000 Subject: [PATCH] Docs: Correct references to `WP_Filesystem_Base` methods in various DocBlocks. Props pbiron. Fixes #51087. git-svn-id: https://develop.svn.wordpress.org/trunk@48835 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-wp-filesystem-base.php | 28 +++++++++---------- src/wp-admin/includes/class-wp-upgrader.php | 4 +-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/wp-admin/includes/class-wp-filesystem-base.php b/src/wp-admin/includes/class-wp-filesystem-base.php index 170a2444f4..11c9390545 100644 --- a/src/wp-admin/includes/class-wp-filesystem-base.php +++ b/src/wp-admin/includes/class-wp-filesystem-base.php @@ -122,12 +122,12 @@ class WP_Filesystem_Base { * Locates a folder on the remote filesystem. * * @since 2.5.0 - * @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() instead. - * @see WP_Filesystem::abspath() - * @see WP_Filesystem::wp_content_dir() - * @see WP_Filesystem::wp_plugins_dir() - * @see WP_Filesystem::wp_themes_dir() - * @see WP_Filesystem::wp_lang_dir() + * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() instead. + * @see WP_Filesystem_Base::abspath() + * @see WP_Filesystem_Base::wp_content_dir() + * @see WP_Filesystem_Base::wp_plugins_dir() + * @see WP_Filesystem_Base::wp_themes_dir() + * @see WP_Filesystem_Base::wp_lang_dir() * * @param string $base The folder to start searching from. * @param bool $echo True to display debug information. @@ -135,7 +135,7 @@ class WP_Filesystem_Base { * @return string The location of the remote path. */ public function find_base_dir( $base = '.', $echo = false ) { - _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); + _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' ); $this->verbose = $echo; return $this->abspath(); } @@ -144,19 +144,19 @@ class WP_Filesystem_Base { * Locates a folder on the remote filesystem. * * @since 2.5.0 - * @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() methods instead. - * @see WP_Filesystem::abspath() - * @see WP_Filesystem::wp_content_dir() - * @see WP_Filesystem::wp_plugins_dir() - * @see WP_Filesystem::wp_themes_dir() - * @see WP_Filesystem::wp_lang_dir() + * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods instead. + * @see WP_Filesystem_Base::abspath() + * @see WP_Filesystem_Base::wp_content_dir() + * @see WP_Filesystem_Base::wp_plugins_dir() + * @see WP_Filesystem_Base::wp_themes_dir() + * @see WP_Filesystem_Base::wp_lang_dir() * * @param string $base The folder to start searching from. * @param bool $echo True to display debug information. * @return string The location of the remote path. */ public function get_base_dir( $base = '.', $echo = false ) { - _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); + _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' ); $this->verbose = $echo; return $this->abspath(); } diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index 2da3b7cb21..5faac56213 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -344,12 +344,12 @@ class WP_Upgrader { } /** - * Flatten the results of WP_Filesystem::dirlist() for iterating over. + * Flatten the results of WP_Filesystem_Base::dirlist() for iterating over. * * @since 4.9.0 * @access protected * - * @param array $nested_files Array of files as returned by WP_Filesystem::dirlist(). + * @param array $nested_files Array of files as returned by WP_Filesystem_Base::dirlist(). * @param string $path Relative path to prepend to child nodes. Optional. * @return array A flattened array of the $nested_files specified. */