Make WordPress Core

Changeset 27604


Ignore:
Timestamp:
03/19/2014 05:26:24 AM (12 years ago)
Author:
nacin
Message:

Combine two strings, using placeholders for filenames and avoiding HTML. see #27057.

File:
1 edited

Legend:

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

    r27369 r27604  
    470470</configuration>';
    471471
    472         ?>
    473                 <li><p><?php printf( __( 'Add the following to your <code>web.config</code> file in <code>%s</code>, <strong>replacing</strong> other WordPress rules:' ), $home_path ); ?></p>
    474                 <?php
     472                echo '<li><p>';
     473                /* translators: 1: a filename like .htaccess. 2: a file path. */
     474                printf( __( 'Add the following to your %1$s file in %2$s, <strong>replacing</strong> other WordPress rules:' ),
     475                        '<code>web.config</code>', '<code>' . $home_path . '</code>' );
     476                echo '</p>';
    475477                if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' )
    476478                        echo '<p><strong>' . __('Warning:') . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>';
     
    504506EOF;
    505507
    506                 ?>
    507                 <li><p><?php printf( __( 'Add the following to your <code>.htaccess</code> file in <code>%s</code>, <strong>replacing</strong> other WordPress rules:' ), $home_path ); ?></p>
    508                 <?php
     508                echo '<li><p>';
     509                /* translators: 1: a filename like .htaccess. 2: a file path. */
     510                printf( __( 'Add the following to your %1$s file in %2$s, <strong>replacing</strong> other WordPress rules:' ),
     511                        '<code>.htaccess</code>', '<code>' . $home_path . '</code>' );
     512                echo '</p>';
    509513                if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' )
    510514                        echo '<p><strong>' . __('Warning:') . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>';
Note: See TracChangeset for help on using the changeset viewer.