From 9232a0a5cb1a446151c8732e2572baf933c4307d Mon Sep 17 00:00:00 2001
From: Paul Biron <paul@sparrowhawkcomputing.com>
Date: Thu, 20 Aug 2020 17:36:21 -0600
Subject: [PATCH] Correct references to non-existent class: WP_Filesystem
should be WP_Filestem_Base.
---
.../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
|
b
|
class WP_Filesystem_Base { |
122 | 122 | * Locates a folder on the remote filesystem. |
123 | 123 | * |
124 | 124 | * @since 2.5.0 |
125 | | * @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() instead. |
126 | | * @see WP_Filesystem::abspath() |
127 | | * @see WP_Filesystem::wp_content_dir() |
128 | | * @see WP_Filesystem::wp_plugins_dir() |
129 | | * @see WP_Filesystem::wp_themes_dir() |
130 | | * @see WP_Filesystem::wp_lang_dir() |
| 125 | * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() instead. |
| 126 | * @see WP_Filesystem_Base::abspath() |
| 127 | * @see WP_Filesystem_Base::wp_content_dir() |
| 128 | * @see WP_Filesystem_Base::wp_plugins_dir() |
| 129 | * @see WP_Filesystem_Base::wp_themes_dir() |
| 130 | * @see WP_Filesystem_Base::wp_lang_dir() |
131 | 131 | * |
132 | 132 | * @param string $base The folder to start searching from. |
133 | 133 | * @param bool $echo True to display debug information. |
… |
… |
class WP_Filesystem_Base { |
135 | 135 | * @return string The location of the remote path. |
136 | 136 | */ |
137 | 137 | public function find_base_dir( $base = '.', $echo = false ) { |
138 | | _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); |
| 138 | _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' ); |
139 | 139 | $this->verbose = $echo; |
140 | 140 | return $this->abspath(); |
141 | 141 | } |
… |
… |
class WP_Filesystem_Base { |
144 | 144 | * Locates a folder on the remote filesystem. |
145 | 145 | * |
146 | 146 | * @since 2.5.0 |
147 | | * @deprecated 2.7.0 use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() methods instead. |
148 | | * @see WP_Filesystem::abspath() |
149 | | * @see WP_Filesystem::wp_content_dir() |
150 | | * @see WP_Filesystem::wp_plugins_dir() |
151 | | * @see WP_Filesystem::wp_themes_dir() |
152 | | * @see WP_Filesystem::wp_lang_dir() |
| 147 | * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods instead. |
| 148 | * @see WP_Filesystem_Base::abspath() |
| 149 | * @see WP_Filesystem_Base::wp_content_dir() |
| 150 | * @see WP_Filesystem_Base::wp_plugins_dir() |
| 151 | * @see WP_Filesystem_Base::wp_themes_dir() |
| 152 | * @see WP_Filesystem_Base::wp_lang_dir() |
153 | 153 | * |
154 | 154 | * @param string $base The folder to start searching from. |
155 | 155 | * @param bool $echo True to display debug information. |
156 | 156 | * @return string The location of the remote path. |
157 | 157 | */ |
158 | 158 | public function get_base_dir( $base = '.', $echo = false ) { |
159 | | _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir()' ); |
| 159 | _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' ); |
160 | 160 | $this->verbose = $echo; |
161 | 161 | return $this->abspath(); |
162 | 162 | } |
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
|
b
|
class WP_Upgrader { |
344 | 344 | } |
345 | 345 | |
346 | 346 | /** |
347 | | * Flatten the results of WP_Filesystem::dirlist() for iterating over. |
| 347 | * Flatten the results of WP_Filesystem_Base::dirlist() for iterating over. |
348 | 348 | * |
349 | 349 | * @since 4.9.0 |
350 | 350 | * @access protected |
351 | 351 | * |
352 | | * @param array $nested_files Array of files as returned by WP_Filesystem::dirlist(). |
| 352 | * @param array $nested_files Array of files as returned by WP_Filesystem_Base::dirlist(). |
353 | 353 | * @param string $path Relative path to prepend to child nodes. Optional. |
354 | 354 | * @return array A flattened array of the $nested_files specified. |
355 | 355 | */ |