Make WordPress Core

Changeset 21706


Ignore:
Timestamp:
09/03/2012 10:07:34 PM (13 years ago)
Author:
nacin
Message:

Fix a placeholder in a string without breaking said string in a branch. fixes #21511.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-admin/includes/update-core.php

    r21704 r21706  
    681681    global $wp_version, $pagenow, $action;
    682682
    683     if ( version_compare( $wp_version, '3.4-RC1', '>=' ) )
     683    if ( version_compare( $wp_version, '3.5-alpha', '>=' ) )
    684684        return;
    685685
     
    697697    show_message( __('WordPress updated successfully') );
    698698
     699    $js_message = __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%s">here</a>.' );
     700    $js_message = str_replace( '"%s"', '"%2$s"', $js_message ); // in lieu of breaking the string.
     701
    699702    // self_admin_url() won't exist when upgrading from <= 3.0, so relative URLs are intentional.
    700     show_message( '<span class="hide-if-no-js">' . sprintf( __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%s">here</a>.' ), $new_version, 'about.php?updated' ) . '</span>' );
     703    show_message( '<span class="hide-if-no-js">' . sprintf( $js_message, $new_version, 'about.php?updated' ) . '</span>' );
    701704    show_message( '<span class="hide-if-js">' . sprintf( __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), $new_version, 'about.php?updated' ) . '</span>' );
    702705    echo '</div>';
Note: See TracChangeset for help on using the changeset viewer.