Make WordPress Core

Changeset 45669


Ignore:
Timestamp:
07/25/2019 01:18:01 AM (7 years ago)
Author:
SergeyBiryukov
Message:

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

Props patilswapnilv, ianbelanger, SergeyBiryukov.
Fixes #47768.

Location:
trunk/src/wp-admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r45612 r45669  
    311311                                <pre>{{ data.message }}</pre>
    312312                        <# } else if ( 'file_not_writable' === data.code ) { #>
    313                                 <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>
     313                                <p>
     314                                        <?php
     315                                        printf(
     316                                                /* translators: %s: Documentation URL */
     317                                                __( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
     318                                                __( 'https://wordpress.org/support/article/changing-file-permissions/' )
     319                                        );
     320                                        ?>
     321                                </p>
    314322                        <# } else { #>
    315323                                <p>{{ data.message || data.code }}</p>
  • trunk/src/wp-admin/options-permalink.php

    r45583 r45669  
    327327                                <?php
    328328                                printf(
    329                                         /* translators: 1: web.config, 2: Codex URL, 3: CTRL + a, 4: element code */
     329                                        /* translators: 1: web.config, 2: Documentation URL, 3: CTRL + a, 4: element code */
    330330                                        __( '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.' ),
    331331                                        '<code>web.config</code>',
    332                                         __( 'https://codex.wordpress.org/Changing_File_Permissions' ),
     332                                        __( 'https://wordpress.org/support/article/changing-file-permissions/' ),
    333333                                        '<kbd>CTRL + a</kbd>',
    334334                                        '<code>/&lt;configuration&gt;/&lt;system.webServer&gt;/&lt;rewrite&gt;/&lt;rules&gt;</code>'
    … …  
    353353                        <?php
    354354                        printf(
    355                                 /* translators: 1: Codex URL, 2: web.config, 3: CTRL + a */
     355                                /* translators: 1: Documentation URL, 2: web.config, 3: CTRL + a */
    356356                                __( '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.' ),
    357                                 __( 'https://codex.wordpress.org/Changing_File_Permissions' ),
     357                                __( 'https://wordpress.org/support/article/changing-file-permissions/' ),
    358358                                '<code>web.config</code>',
    359359                                '<kbd>CTRL + a</kbd>'
    … …  
    385385                <?php
    386386                printf(
    387                         /* translators: 1: .htaccess, 2: Codex URL, 3: CTRL + a */
     387                        /* translators: 1: .htaccess, 2: Documentation URL, 3: CTRL + a */
    388388                        __( '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.' ),
    389389                        '<code>.htaccess</code>',
    390                         __( 'https://codex.wordpress.org/Changing_File_Permissions' ),
     390                        __( 'https://wordpress.org/support/article/changing-file-permissions/' ),
    391391                        '<kbd>CTRL + a</kbd>'
    392392                );
  • trunk/src/wp-admin/plugin-editor.php

    r45602 r45669  
    281281        </p>
    282282<?php else : ?>
    283         <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>
     283        <p><em>
     284                <?php
     285                printf(
     286                        /* translators: %s: Documentation URL */
     287                        __( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
     288                        __( 'https://wordpress.org/support/article/changing-file-permissions/' )
     289                );
     290                ?>
     291        </em></p>
    284292<?php endif; ?>
    285293<?php wp_print_file_editor_templates(); ?>
  • trunk/src/wp-admin/theme-editor.php

    r45608 r45669  
    314314                </p>
    315315        <?php else : ?>
    316                 <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>
     316                <p><em>
     317                        <?php
     318                        printf(
     319                                /* translators: %s: Documentation URL */
     320                                __( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
     321                                __( 'https://wordpress.org/support/article/changing-file-permissions/' )
     322                        );
     323                        ?>
     324                </em></p>
    317325        <?php endif; ?>
    318326        </div>
Note: See TracChangeset for help on using the changeset viewer.