Make WordPress Core

Ticket #42149: 42149.diff

File 42149.diff, 2.2 KB (added by birgire, 9 years ago)
  • src/wp-admin/includes/deprecated.php

    diff --git src/wp-admin/includes/deprecated.php src/wp-admin/includes/deprecated.php
    index e65fe5a..b01f661 100644
    class WP_User_Search { 
    599599                                'add_args' => $args
    600600                        ) );
    601601                        if ( $this->paging_text ) {
    602                                 $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s',
     602
     603                                /* translators: Paging text for users search. 1: Starting range on current page 2: Ending range on current page 3: Total number of users */
     604                                $text =  __( 'Displaying %1$s&#8211;%2$s of %3$s' );
     605
     606                                $this->paging_text = sprintf( '<span class="displaying-num">' . $text . '</span>%s',
    603607                                        number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ),
    604608                                        number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ),
    605609                                        number_format_i18n( $this->total_users_for_query ),
  • src/wp-admin/options-general.php

    diff --git src/wp-admin/options-general.php src/wp-admin/options-general.php
    index 5be7ad9..c50df61 100644
    if ( ! empty( $languages ) || ! empty( $translations ) ) { 
    158158                        if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) {
    159159                                if ( is_multisite() && current_user_can( 'manage_network_options' )
    160160                                        || ! is_multisite() && current_user_can( 'manage_options' ) ) {
     161
     162                                        /* translators: Deprication note for a constant. 1: Constant, 2: File*/
     163                                        $note = __( 'The %1$s constant in your %2$s file is no longer needed.' );
     164
    161165                                        ?>
    162166                                        <p class="description">
    163                                                 <strong><?php _e( 'Note:' ); ?></strong> <?php printf( __( 'The %s constant in your %s file is no longer needed.' ), '<code>WPLANG</code>', '<code>wp-config.php</code>' ); ?>
     167                                                <strong><?php _e( 'Note:' ); ?></strong> <?php printf( $note, '<code>WPLANG</code>', '<code>wp-config.php</code>' ); ?>
    164168                                        </p>
    165169                                        <?php
    166170                                }
    167                                 _deprecated_argument( 'define()', '4.0.0', sprintf( __( 'The %s constant in your %s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) );
     171                                _deprecated_argument( 'define()', '4.0.0', sprintf( $note, 'WPLANG', 'wp-config.php' ) );
    168172                        }
    169173                        ?>
    170174                </td>