From 2c5e50ec4e37d690877e70aed2506ec22e1ce273 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 11 Apr 2022 05:14:43 +0000 Subject: [PATCH] Permalinks: Improve settings page error messages. Props sabernhardt. Fixes #53141. git-svn-id: https://develop.svn.wordpress.org/trunk@53127 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/options-permalink.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/options-permalink.php b/src/wp-admin/options-permalink.php index dcea250960..12df3d6fcf 100644 --- a/src/wp-admin/options-permalink.php +++ b/src/wp-admin/options-permalink.php @@ -368,7 +368,7 @@ printf( __( 'If you like, you may enter custom structures for your category and writable, we could do this automatically, but it is not so 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.' ), + __( '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', @@ -385,7 +385,7 @@ printf( __( 'If you like, you may enter custom structures for your category and web.config' ); ?> @@ -395,7 +395,7 @@ printf( __( 'If you like, you may enter custom structures for your category and writable, we could do this automatically, but it is not 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 (or %4$s on Mac) to select all. Then insert this code into the %2$s file.' ), + __( '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', @@ -411,7 +411,7 @@ printf( __( 'If you like, you may enter custom structures for your category and web.config' ); ?> @@ -426,7 +426,7 @@ else : writable, we could do this automatically, but it is not so 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.' ), + __( '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',