I18N: Change unnecessary uppercased words in WP_Upgrader::generic_strings()
to lower case.
See #18218. git-svn-id: https://develop.svn.wordpress.org/trunk@38074 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bc2a58755f
commit
f160118827
@ -150,13 +150,13 @@ class WP_Upgrader {
|
|||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
public function generic_strings() {
|
public function generic_strings() {
|
||||||
$this->strings['bad_request'] = __('Invalid Data provided.');
|
$this->strings['bad_request'] = __('Invalid data provided.');
|
||||||
$this->strings['fs_unavailable'] = __('Could not access filesystem.');
|
$this->strings['fs_unavailable'] = __('Could not access filesystem.');
|
||||||
$this->strings['fs_error'] = __('Filesystem error.');
|
$this->strings['fs_error'] = __('Filesystem error.');
|
||||||
$this->strings['fs_no_root_dir'] = __('Unable to locate WordPress Root directory.');
|
$this->strings['fs_no_root_dir'] = __('Unable to locate WordPress root directory.');
|
||||||
$this->strings['fs_no_content_dir'] = __('Unable to locate WordPress Content directory (wp-content).');
|
$this->strings['fs_no_content_dir'] = __('Unable to locate WordPress content directory (wp-content).');
|
||||||
$this->strings['fs_no_plugins_dir'] = __('Unable to locate WordPress Plugin directory.');
|
$this->strings['fs_no_plugins_dir'] = __('Unable to locate WordPress plugin directory.');
|
||||||
$this->strings['fs_no_themes_dir'] = __('Unable to locate WordPress Theme directory.');
|
$this->strings['fs_no_themes_dir'] = __('Unable to locate WordPress theme directory.');
|
||||||
/* translators: %s: directory name */
|
/* translators: %s: directory name */
|
||||||
$this->strings['fs_no_folder'] = __('Unable to locate needed folder (%s).');
|
$this->strings['fs_no_folder'] = __('Unable to locate needed folder (%s).');
|
||||||
|
|
||||||
|
@ -818,7 +818,7 @@ function delete_plugins( $plugins, $deprecated = '' ) {
|
|||||||
// Get the base plugin folder.
|
// Get the base plugin folder.
|
||||||
$plugins_dir = $wp_filesystem->wp_plugins_dir();
|
$plugins_dir = $wp_filesystem->wp_plugins_dir();
|
||||||
if ( empty( $plugins_dir ) ) {
|
if ( empty( $plugins_dir ) ) {
|
||||||
return new WP_Error( 'fs_no_plugins_dir', __( 'Unable to locate WordPress Plugin directory.' ) );
|
return new WP_Error( 'fs_no_plugins_dir', __( 'Unable to locate WordPress plugin directory.' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
$plugins_dir = trailingslashit( $plugins_dir );
|
$plugins_dir = trailingslashit( $plugins_dir );
|
||||||
|
@ -60,7 +60,7 @@ function delete_theme($stylesheet, $redirect = '') {
|
|||||||
// Get the base plugin folder.
|
// Get the base plugin folder.
|
||||||
$themes_dir = $wp_filesystem->wp_themes_dir();
|
$themes_dir = $wp_filesystem->wp_themes_dir();
|
||||||
if ( empty( $themes_dir ) ) {
|
if ( empty( $themes_dir ) ) {
|
||||||
return new WP_Error( 'fs_no_themes_dir', __( 'Unable to locate WordPress Theme directory.' ) );
|
return new WP_Error( 'fs_no_themes_dir', __( 'Unable to locate WordPress theme directory.' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
$themes_dir = trailingslashit( $themes_dir );
|
$themes_dir = trailingslashit( $themes_dir );
|
||||||
|
Loading…
Reference in New Issue
Block a user