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
This commit is contained in:
parent
5ad8969179
commit
e87d86b2ae
@ -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();
|
||||
}
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user