diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index 4631f98d10..1d7eeef3d5 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -2009,12 +2009,8 @@ class WP_Site_Health { $wp_content = $wp_filesystem->wp_content_dir(); if ( ! $wp_content ) { - $result['status'] = 'critical'; - $result['label'] = sprintf( - /* translators: %s: wp-content */ - __( 'Unable to locate WordPress content directory (%s)' ), - 'wp-content' - ); + $result['status'] = 'critical'; + $result['label'] = __( 'Unable to locate WordPress content directory' ); $result['description'] = sprintf( /* translators: %s: wp-content */ '

' . __( 'The %s directory cannot be located.' ) . '

', @@ -2079,12 +2075,8 @@ class WP_Site_Health { } if ( ! $backup_dir_exists && $upgrade_dir_exists && ! $upgrade_dir_is_writable ) { - $result['status'] = 'critical'; - $result['label'] = sprintf( - /* translators: %s: upgrade */ - __( 'The %s directory exists but is not writable' ), - 'upgrade' - ); + $result['status'] = 'critical'; + $result['label'] = __( 'The upgrade directory exists but is not writable' ); $result['description'] = sprintf( /* translators: %s: wp-content/upgrade */ '

' . __( 'The %s directory exists but is not writable. This directory is used for plugin and theme updates. Please make sure the server has write permissions to this directory.' ) . '

', @@ -2094,12 +2086,8 @@ class WP_Site_Health { } if ( ! $upgrade_dir_exists && ! $wp_filesystem->is_writable( $wp_content ) ) { - $result['status'] = 'critical'; - $result['label'] = sprintf( - /* translators: %s: upgrade */ - __( 'The %s directory cannot be created' ), - 'upgrade' - ); + $result['status'] = 'critical'; + $result['label'] = __( 'The upgrade directory cannot be created' ); $result['description'] = sprintf( /* translators: 1: wp-content/upgrade, 2: wp-content. */ '

' . __( 'The %1$s directory does not exist, and the server does not have write permissions in %2$s to create it. This directory is used for plugin and theme updates. Please make sure the server has write permissions in %2$s.' ) . '

', diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index e23d5bc3c6..b2d7745233 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -189,7 +189,7 @@ class WP_Upgrader { $this->strings['fs_unavailable'] = __( 'Could not access filesystem.' ); $this->strings['fs_error'] = __( 'Filesystem error.' ); $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'] = 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_themes_dir'] = __( 'Unable to locate WordPress theme directory.' ); /* translators: %s: Directory name. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 36a25eb88b..f301865399 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta2-56116'; +$wp_version = '6.3-beta2-56117'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.