rebase on oct-10-2023
This commit is contained in:
@@ -87,7 +87,7 @@ if ( ! got_url_rewrite() ) {
|
||||
* base prefix, WordPress core can no longer account for the possible collision.
|
||||
*/
|
||||
if ( is_multisite() && ! is_subdomain_install() && is_main_site()
|
||||
&& 0 === strpos( $permalink_structure, '/blog/' )
|
||||
&& str_starts_with( $permalink_structure, '/blog/' )
|
||||
) {
|
||||
$blog_prefix = '/blog';
|
||||
}
|
||||
@@ -224,14 +224,14 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
printf(
|
||||
/* translators: %s: Documentation URL. */
|
||||
__( 'WordPress offers you the ability to create a custom URL structure for your permalinks and archives. Custom URL structures can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="%s">number of tags are available</a>, and here are some examples to get you started.' ),
|
||||
__( 'https://wordpress.org/support/article/using-permalinks/' )
|
||||
__( 'https://wordpress.org/documentation/article/customize-permalinks/' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
if ( is_multisite() && ! is_subdomain_install() && is_main_site()
|
||||
&& 0 === strpos( $permalink_structure, '/blog/' )
|
||||
&& str_starts_with( $permalink_structure, '/blog/' )
|
||||
) {
|
||||
$permalink_structure = preg_replace( '|^/?blog|', '', $permalink_structure );
|
||||
$category_base = preg_replace( '|^/?blog|', '', $category_base );
|
||||
@@ -465,7 +465,7 @@ printf(
|
||||
/* translators: 1: web.config, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A, 5: Element code. */
|
||||
__( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s">writable</a>, 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.' ),
|
||||
'<code>web.config</code>',
|
||||
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
|
||||
__( 'https://wordpress.org/documentation/article/changing-file-permissions/' ),
|
||||
'<kbd>Ctrl + A</kbd>',
|
||||
'<kbd>⌘ + A</kbd>',
|
||||
'<code>/<configuration>/<system.webServer>/<rewrite>/<rules></code>'
|
||||
@@ -497,7 +497,7 @@ printf(
|
||||
printf(
|
||||
/* translators: 1: Documentation URL, 2: web.config, 3: Ctrl + A, 4: ⌘ + A */
|
||||
__( '<strong>Error:</strong> The root directory of your site is not <a href="%1$s">writable</a>, 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/' ),
|
||||
__( 'https://wordpress.org/documentation/article/changing-file-permissions/' ),
|
||||
'<code>web.config</code>',
|
||||
'<kbd>Ctrl + A</kbd>',
|
||||
'<kbd>⌘ + A</kbd>'
|
||||
@@ -533,7 +533,7 @@ printf(
|
||||
/* translators: 1: .htaccess, 2: Documentation URL, 3: Ctrl + A, 4: ⌘ + A */
|
||||
__( '<strong>Error:</strong> Your %1$s file is not <a href="%2$s">writable</a>, 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.' ),
|
||||
'<code>.htaccess</code>',
|
||||
__( 'https://wordpress.org/support/article/changing-file-permissions/' ),
|
||||
__( 'https://wordpress.org/documentation/article/changing-file-permissions/' ),
|
||||
'<kbd>Ctrl + A</kbd>',
|
||||
'<kbd>⌘ + A</kbd>'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user