I18N: Replace file names in translatable strings on Permalink Settings screen with placeholders.

Props ramiy.
Fixes #48863.
Built from https://develop.svn.wordpress.org/trunk@46957


git-svn-id: http://core.svn.wordpress.org/trunk@46756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-12-13 21:27:05 +00:00
parent 48692b6524
commit 0b8438a6d2
2 changed files with 16 additions and 4 deletions

View File

@ -151,12 +151,24 @@ if ( isset( $_POST['permalink_structure'] ) || isset( $_POST['category_base'] )
if ( $iis7_permalinks ) {
if ( $permalink_structure && ! $using_index_permalinks && ! $writable ) {
$message = __( 'You should update your web.config now.' );
$message = sprintf(
/* translators: %s: web.config */
__( 'You should update your %s file now.' ),
'<code>web.config</code>'
);
} elseif ( $permalink_structure && ! $using_index_permalinks && $writable ) {
$message = __( 'Permalink structure updated. Remove write access on web.config file now!' );
$message = sprintf(
/* translators: %s: web.config */
__( 'Permalink structure updated. Remove write access on %s file now!' ),
'<code>web.config</code>'
);
}
} elseif ( ! $is_nginx && $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) {
$message = __( 'You should update your .htaccess now.' );
$message = sprintf(
/* translators: %s: .htaccess */
__( 'You should update your %s file now.' ),
'<code>.htaccess</code>'
);
}
if ( ! get_settings_errors() ) {

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-alpha-46902';
$wp_version = '5.4-alpha-46957';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.