I18N: Add missing translator comment in `WP_Upgrader::generic_strings()`.
This resolves a WPCS warning: > A gettext call containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders. Includes moving `wp-content` out of the translatable string in a similar message in `_wp_delete_all_temp_backups()`. Follow-up to [55720], [56117]. Props jrf. See #58831. Built from https://develop.svn.wordpress.org/trunk@56276 git-svn-id: http://core.svn.wordpress.org/trunk@55788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
44629e6286
commit
55ab72cf12
|
@ -189,6 +189,7 @@ class WP_Upgrader {
|
||||||
$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.' );
|
||||||
|
/* translators: %s: Directory name. */
|
||||||
$this->strings['fs_no_content_dir'] = sprintf( __( 'Unable to locate WordPress content directory (%s).' ), 'wp-content' );
|
$this->strings['fs_no_content_dir'] = sprintf( __( 'Unable to locate WordPress content directory (%s).' ), '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.' );
|
||||||
|
|
|
@ -1119,7 +1119,11 @@ function _wp_delete_all_temp_backups() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! $wp_filesystem->wp_content_dir() ) {
|
if ( ! $wp_filesystem->wp_content_dir() ) {
|
||||||
return new WP_Error( 'fs_no_content_dir', __( 'Unable to locate WordPress content directory (wp-content).' ) );
|
return new WP_Error(
|
||||||
|
'fs_no_content_dir',
|
||||||
|
/* translators: %s: Directory name. */
|
||||||
|
sprintf( __( 'Unable to locate WordPress content directory (%s).' ), 'wp-content' )
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$temp_backup_dir = $wp_filesystem->wp_content_dir() . 'upgrade-temp-backup/';
|
$temp_backup_dir = $wp_filesystem->wp_content_dir() . 'upgrade-temp-backup/';
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.4-alpha-56274';
|
$wp_version = '6.4-alpha-56276';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue