diff -r be944660c56a -r 3d72ae0968f4 wp/wp-admin/options-permalink.php --- a/wp/wp-admin/options-permalink.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-admin/options-permalink.php Tue Sep 27 16:37:53 2022 +0200 @@ -13,6 +13,7 @@ wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); } +// Used in the HTML title tag. $title = __( 'Permalink Settings' ); $parent_file = 'options-general.php'; @@ -55,12 +56,18 @@ ) ); -get_current_screen()->set_help_sidebar( - '
' . __( 'For more information:' ) . '
' . - '' . __( 'Documentation on Permalinks Settings' ) . '
' . - '' . __( 'Documentation on Using Permalinks' ) . '
' . - '' . __( 'Support' ) . '
' -); +$help_sidebar_content = '' . __( 'For more information:' ) . '
' . + '' . __( 'Documentation on Permalinks Settings' ) . '
' . + '' . __( 'Documentation on Using Permalinks' ) . '
'; + +if ( $is_nginx ) { + $help_sidebar_content .= '' . __( 'Documentation on Nginx configuration.' ) . '
'; +} + +$help_sidebar_content .= '' . __( 'Support' ) . '
'; + +get_current_screen()->set_help_sidebar( $help_sidebar_content ); +unset( $help_sidebar_content ); $home_path = get_home_path(); $iis7_permalinks = iis7_supports_permalinks(); @@ -360,11 +367,12 @@
writable, we could do this automatically, but it isn’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.' ),
+ /* translators: 1: web.config, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A, 5: Element code. */
+ __( 'Error: Your %1$s file is not writable, so updating it automatically was not possible. This is the URL rewrite rule you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all. Then insert this rule inside of the %5$s element in %1$s file.' ),
'web.config
',
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
- 'CTRL + a',
+ 'Ctrl + A',
+ '⌘ + A',
'/<configuration>/<system.webServer>/<rewrite>/<rules>
'
);
?>
@@ -377,7 +385,7 @@
web.config'
);
?>
@@ -386,11 +394,12 @@
writable, we could do this automatically, but it isn’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.' ),
+ /* translators: 1: Documentation URL, 2: web.config, 3: Ctrl + A, 4: ⌘ + A */
+ __( 'Error: The root directory of your site is not writable, so creating a file automatically was not possible. 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 (or %4$s on Mac) to select all. Then insert this code into the %2$s file.' ),
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
'web.config
',
- 'CTRL + a'
+ 'Ctrl + A',
+ '⌘ + A'
);
?>
Documentation on Nginx configuration.' ); ?>
-
writable, we could do this automatically, but it isn’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.' ),
+ /* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A */
+ __( 'Error: Your %1$s file is not writable, so updating it automatically was not possible. These are the mod_rewrite rules you should have in your %1$s file. Click in the field and press %3$s (or %4$s on Mac) to select all.' ),
'.htaccess
',
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
- 'CTRL + a'
+ 'Ctrl + A',
+ '⌘ + A'
);
?>