Make WordPress Core


Ignore:
Timestamp:
01/12/2019 06:40:16 AM (8 years ago)
Author:
pento
Message:

Coding Standards: Upgrade WPCS to 1.2.1.

This upgrade fixes quite a few false positives, as well as auto-fixing some indenting issues.

Fixes #45956.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-permalink.php

    r43571 r44574  
    350350                <?php else : ?>
    351351<p>
    352         <?php
    353         printf(
    354                 /* translators: 1: Codex URL, 2: web.config, 3: CTRL + a */
    355                 __( '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.' ),
    356                 __( 'https://codex.wordpress.org/Changing_File_Permissions' ),
    357                 '<code>web.config</code>',
    358                 '<kbd>CTRL + a</kbd>'
    359         );
    360         ?>
     352                        <?php
     353                        printf(
     354                                /* translators: 1: Codex URL, 2: web.config, 3: CTRL + a */
     355                                __( '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.' ),
     356                                __( 'https://codex.wordpress.org/Changing_File_Permissions' ),
     357                                '<code>web.config</code>',
     358                                '<kbd>CTRL + a</kbd>'
     359                        );
     360                        ?>
    361361</p>
    362362<form action="options-permalink.php" method="post">
    363         <?php wp_nonce_field( 'update-permalink' ); ?>
     363                        <?php wp_nonce_field( 'update-permalink' ); ?>
    364364        <p><textarea rows="18" class="large-text readonly" name="rules" id="rules" readonly="readonly"><?php echo esc_textarea( $wp_rewrite->iis7_url_rewrite_rules( true ) ); ?></textarea></p>
    365365</form>
    366366<p>
    367         <?php
    368         printf(
    369                 /* translators: %s: web.config */
    370                 __( 'If you temporarily make your site&#8217;s root directory writable for us to generate the %s file automatically, do not forget to revert the permissions after the file has been created.' ),
    371                 '<code>web.config</code>'
    372         );
    373         ?>
     367                        <?php
     368                        printf(
     369                                /* translators: %s: web.config */
     370                                __( 'If you temporarily make your site&#8217;s root directory writable for us to generate the %s file automatically, do not forget to revert the permissions after the file has been created.' ),
     371                                '<code>web.config</code>'
     372                        );
     373                        ?>
    374374</p>
    375375                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.