Make WordPress Core

Ticket #40763: 40763.patch

File 40763.patch, 9.5 KB (added by ramiy, 5 years ago)
  • wp-admin/options-general.php

     
    7474<th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>
    7575<td><input name="home" type="url" id="home" aria-describedby="home-description" value="<?php form_option( 'home' ); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
    7676<?php if ( ! defined( 'WP_HOME' ) ) : ?>
    77 <p class="description" id="home-description"><?php _e( 'Enter the address here if you <a href="https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">want your site home page to be different from your WordPress installation directory.</a>' ); ?></p></td>
     77<p class="description" id="home-description"><?php
     78        printf(
     79                /* translators: %s: Codex URL */
     80                __( 'Enter the address here if you <a href="%s">want your site home page to be different from your WordPress installation directory.</a>',
     81                __( 'https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory' )
     82        );
     83?></p>
    7884<?php endif; ?>
     85</td>
    7986</tr>
    8087<tr>
    8188<th scope="row"><label for="admin_email"><?php _e('Email Address') ?> </label></th>
  • wp-admin/options-permalink.php

     
    158158<form name="form" action="options-permalink.php" method="post">
    159159<?php wp_nonce_field('update-permalink') ?>
    160160
    161   <p><?php _e( '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="https://codex.wordpress.org/Using_Permalinks">number of tags are available</a>, and here are some examples to get you started.' ); ?></p>
     161        <p><?php
     162                printf(
     163                        /* translators: %s: Codex URL */
     164                        __( '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.' ),
     165                        __( 'https://codex.wordpress.org/Using_Permalinks' )
     166                );
     167        ?></p>
    162168
    163169<?php
    164170if ( is_multisite() && ! is_subdomain_install() && is_main_site() && 0 === strpos( $permalink_structure, '/blog/' ) ) {
     
    235241<?php if ( $iis7_permalinks ) :
    236242        if ( isset($_POST['submit']) && $permalink_structure && ! $using_index_permalinks && ! $writable ) :
    237243                if ( file_exists($home_path . 'web.config') ) : ?>
    238 <p><?php _e('If your <code>web.config</code> file were <a href="https://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn&#8217;t so this is the url rewrite rule you should have in your <code>web.config</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all. Then insert this rule inside of the <code>/&lt;configuration&gt;/&lt;system.webServer&gt;/&lt;rewrite&gt;/&lt;rules&gt;</code> element in <code>web.config</code> file.') ?></p>
     244<p><?php
     245        printf(
     246                /* translators: 1: web.config 2: Codex URL 3: CTRL + a 4: Element code */
     247                __( 'If your %1$s file were <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.' ),
     248                '<code>web.config</code>',
     249                __( 'https://codex.wordpress.org/Changing_File_Permissions' ),
     250                '<kbd>CTRL + a</kbd>'
     251                '<code>/&lt;configuration&gt;/&lt;system.webServer&gt;/&lt;rewrite&gt;/&lt;rules&gt;</code>'
     252        );
     253?></p>
    239254<form action="options-permalink.php" method="post">
    240255<?php wp_nonce_field('update-permalink') ?>
    241256        <p><textarea rows="9" class="large-text readonly" name="rules" id="rules" readonly="readonly"><?php echo esc_textarea( $wp_rewrite->iis7_url_rewrite_rules() ); ?></textarea></p>
    242257</form>
    243 <p><?php _e('If you temporarily make your <code>web.config</code> file writable for us to generate rewrite rules automatically, do not forget to revert the permissions after rule has been saved.') ?></p>
     258<p><?php
     259        printf(
     260                /* translators: %s: web.config */
     261                __( 'If you temporarily make your %s file writable for us to generate rewrite rules automatically, do not forget to revert the permissions after rule has been saved.' ),
     262                '<code>web.config</code>',
     263        );
     264?></p>
    244265                <?php else : ?>
    245 <p><?php _e('If the root directory of your site were <a href="https://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn&#8217;t so this is the url rewrite rule you should have in your <code>web.config</code> file. Create a new file, called <code>web.config</code> in the root directory of your site. Click in the field and press <kbd>CTRL + a</kbd> to select all. Then insert this code into the <code>web.config</code> file.') ?></p>
     266<p><?php
     267        printf(
     268                /* translators: 1: Codex URL 2: web.config 3: CTRL + a */
     269                __( 'If the root directory of your site were <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.' ),
     270                __( 'https://codex.wordpress.org/Changing_File_Permissions' ),
     271                '<code>web.config</code>',
     272                '<kbd>CTRL + a</kbd>'
     273        );
     274?></p>
    246275<form action="options-permalink.php" method="post">
    247276<?php wp_nonce_field('update-permalink') ?>
    248277        <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>
    249278</form>
    250 <p><?php _e('If you temporarily make your site&#8217;s root directory writable for us to generate the <code>web.config</code> file automatically, do not forget to revert the permissions after the file has been created.') ?></p>
     279<p><?php
     280        printf(
     281                /* translators: %s: web.config */
     282                __( '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.' ),
     283                '<code>web.config</code>',
     284        );
     285?></p>
    251286                <?php endif; ?>
    252287        <?php endif; ?>
    253288<?php elseif ( $is_nginx ) : ?>
     
    254289        <p><?php _e( '<a href="https://codex.wordpress.org/Nginx">Documentation on Nginx configuration</a>.' ); ?></p>
    255290<?php else:
    256291        if ( $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) : ?>
    257 <p><?php _e('If your <code>.htaccess</code> file were <a href="https://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn&#8217;t so these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all.') ?></p>
     292<p><?php
     293        printf(
     294                /* translators: 1: .htaccess 2: Codex URL 3: CTRL + a */
     295                __( 'If your %1$s file were <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.' ),
     296                '<code>.htaccess</code>',
     297                __( 'https://codex.wordpress.org/Changing_File_Permissions' ),
     298                '<kbd>CTRL + a</kbd>'
     299        );
     300?></p>
    258301<form action="options-permalink.php" method="post">
    259302<?php wp_nonce_field('update-permalink') ?>
    260303        <p><textarea rows="6" class="large-text readonly" name="rules" id="rules" readonly="readonly"><?php echo esc_textarea( $wp_rewrite->mod_rewrite_rules() ); ?></textarea></p>
  • wp-admin/options-writing.php

     
    168168
    169169<?php if ( 1 == get_option('blog_public') ) : ?>
    170170
    171 <p><label for="ping_sites"><?php _e( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="https://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service URLs with line breaks.' ) ?></label></p>
     171<p><label for="ping_sites"><?php
     172        printf(
     173                /* translators: %s: Codex URL */
     174                __( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="%s">Update Services</a> on the Codex. Separate multiple service URLs with line breaks.' ),
     175                __( 'https://codex.wordpress.org/Update_Services' )
     176        );
     177?></label></p>
    172178
    173179<textarea name="ping_sites" id="ping_sites" class="large-text code" rows="3"><?php echo esc_textarea( get_option('ping_sites') ); ?></textarea>
    174180
    175181<?php else : ?>
    176182
    177         <p><?php printf(__('WordPress is not notifying any <a href="https://codex.wordpress.org/Update_Services">Update Services</a> because of your site&#8217;s <a href="%s">visibility settings</a>.'), 'options-reading.php'); ?></p>
     183        <p><?php
     184                printf(
     185                        /* translators: 1: Codex URL. 2: Path to visibility settings. */
     186                        __( 'WordPress is not notifying any <a href="%1$s">Update Services</a> because of your site&#8217;s <a href="%2$s">visibility settings</a>.' ),
     187                        __( 'https://codex.wordpress.org/Update_Services' ),
     188                        'options-reading.php'
     189                );
     190        ?></p>
    178191
    179192<?php endif; ?>
    180193<?php } // multisite ?>