Permalinks: Update URLs for "Changing File Permissions" documentation article.

Props patilswapnilv, ianbelanger, SergeyBiryukov.
Fixes #47768.
Built from https://develop.svn.wordpress.org/trunk@45669


git-svn-id: http://core.svn.wordpress.org/trunk@45480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-07-25 01:18:55 +00:00
parent 5522be31e7
commit aee690fd84
5 changed files with 34 additions and 10 deletions

View File

@ -310,7 +310,15 @@ function wp_print_file_editor_templates() {
</p>
<pre>{{ data.message }}</pre>
<# } else if ( 'file_not_writable' === data.code ) { #>
<p><?php _e( 'You need to make this file writable before you can save your changes. See <a href="https://codex.wordpress.org/Changing_File_Permissions">the Codex</a> for more information.' ); ?></p>
<p>
<?php
printf(
/* translators: %s: Documentation URL */
__( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
__( 'https://wordpress.org/support/article/changing-file-permissions/' )
);
?>
</p>
<# } else { #>
<p>{{ data.message || data.code }}</p>

View File

@ -326,10 +326,10 @@ printf( __( 'If you like, you may enter custom structures for your category and
<p>
<?php
printf(
/* translators: 1: web.config, 2: Codex URL, 3: CTRL + a, 4: element code */
/* translators: 1: web.config, 2: Documentation URL, 3: CTRL + a, 4: element code */
__( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it isn&#8217;t so this is the url rewrite rule you should have in your %1$s file. Click in the field and press %3$s to select all. Then insert this rule inside of the %4$s element in %1$s file.' ),
'<code>web.config</code>',
__( 'https://codex.wordpress.org/Changing_File_Permissions' ),
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
'<kbd>CTRL + a</kbd>',
'<code>/&lt;configuration&gt;/&lt;system.webServer&gt;/&lt;rewrite&gt;/&lt;rules&gt;</code>'
);
@ -352,9 +352,9 @@ printf( __( 'If you like, you may enter custom structures for your category and
<p>
<?php
printf(
/* translators: 1: Codex URL, 2: web.config, 3: CTRL + a */
/* translators: 1: Documentation URL, 2: web.config, 3: CTRL + a */
__( 'If the root directory of your site was <a href="%1$s">writable</a>, we could do this automatically, but it isn&#8217;t so this is the url rewrite rule you should have in your %2$s file. Create a new file, called %2$s in the root directory of your site. Click in the field and press %3$s to select all. Then insert this code into the %2$s file.' ),
__( 'https://codex.wordpress.org/Changing_File_Permissions' ),
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
'<code>web.config</code>',
'<kbd>CTRL + a</kbd>'
);
@ -384,10 +384,10 @@ else :
<p>
<?php
printf(
/* translators: 1: .htaccess, 2: Codex URL, 3: CTRL + a */
/* translators: 1: .htaccess, 2: Documentation URL, 3: CTRL + a */
__( 'If your %1$s file was <a href="%2$s">writable</a>, we could do this automatically, but it isn&#8217;t so these are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s to select all.' ),
'<code>.htaccess</code>',
__( 'https://codex.wordpress.org/Changing_File_Permissions' ),
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
'<kbd>CTRL + a</kbd>'
);
?>

View File

@ -280,7 +280,15 @@ foreach ( $plugins as $plugin_key => $a_plugin ) {
<span class="spinner"></span>
</p>
<?php else : ?>
<p><em><?php _e( 'You need to make this file writable before you can save your changes. See <a href="https://codex.wordpress.org/Changing_File_Permissions">the Codex</a> for more information.' ); ?></em></p>
<p><em>
<?php
printf(
/* translators: %s: Documentation URL */
__( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
__( 'https://wordpress.org/support/article/changing-file-permissions/' )
);
?>
</em></p>
<?php endif; ?>
<?php wp_print_file_editor_templates(); ?>
</form>

View File

@ -313,7 +313,15 @@ else :
<span class="spinner"></span>
</p>
<?php else : ?>
<p><em><?php _e( 'You need to make this file writable before you can save your changes. See <a href="https://codex.wordpress.org/Changing_File_Permissions">the Codex</a> for more information.' ); ?></em></p>
<p><em>
<?php
printf(
/* translators: %s: Documentation URL */
__( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
__( 'https://wordpress.org/support/article/changing-file-permissions/' )
);
?>
</em></p>
<?php endif; ?>
</div>
<?php wp_print_file_editor_templates(); ?>

View File

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