Make WordPress Core

Changeset 41923


Ignore:
Timestamp:
10/18/2017 08:01:36 PM (6 years ago)
Author:
SergeyBiryukov
Message:

I18N: Remove hardcoded constant from a translatable string in network_step1().

Props ramiy.
Fixes #41652.

File:
1 edited

Legend:

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

    r41921 r41923  
    103103
    104104    if ( defined('DO_NOT_UPGRADE_GLOBAL_TABLES') ) {
    105         echo '<div class="error"><p><strong>' . __( 'ERROR:' ) . '</strong> ' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.' ) . '</p></div>';
     105        echo '<div class="error"><p><strong>' . __( 'ERROR:' ) . '</strong> ' . sprintf(
     106            /* translators: %s: DO_NOT_UPGRADE_GLOBAL_TABLES */
     107            __( 'The constant %s cannot be defined when creating a network.' ),
     108            '<code>DO_NOT_UPGRADE_GLOBAL_TABLES</code>'
     109        ) . '</p></div>';
    106110        echo '</div>';
    107111        include( ABSPATH . 'wp-admin/admin-footer.php' );
     
    111115    $active_plugins = get_option( 'active_plugins' );
    112116    if ( ! empty( $active_plugins ) ) {
    113         echo '<div class="updated"><p><strong>' . __( 'Warning:' ) . '</strong> ' . sprintf( __( 'Please <a href="%s">deactivate your plugins</a> before enabling the Network feature.' ), admin_url( 'plugins.php?plugin_status=active' ) ) . '</p></div><p>' . __( 'Once the network is created, you may reactivate your plugins.' ) . '</p>';
     117        echo '<div class="updated"><p><strong>' . __( 'Warning:' ) . '</strong> ' . sprintf(
     118            /* translators: %s: Plugins screen URL */
     119            __( 'Please <a href="%s">deactivate your plugins</a> before enabling the Network feature.' ),
     120            admin_url( 'plugins.php?plugin_status=active' )
     121        ) . '</p></div><p>' . __( 'Once the network is created, you may reactivate your plugins.' ) . '</p>';
    114122        echo '</div>';
    115123        include( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.