Make WordPress Core


Ignore:
Timestamp:
10/05/2014 09:05:54 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Translate some previously untranslated _doing_it_wrong() messages.

props georgestephanis.
fixes #25614.

File:
1 edited

Legend:

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

    r29788 r29840  
    10431043
    10441044        $class = get_class( $this );
    1045         _doing_it_wrong( $class, "$class must set a database connection for use with escaping.", E_USER_NOTICE );
     1045        if ( function_exists( '__' ) ) {
     1046            _doing_it_wrong( $class, sprintf( __( '%s must set a database connection for use with escaping.' ), $class ), E_USER_NOTICE );
     1047        } else {
     1048            _doing_it_wrong( $class, sprintf( '%s must set a database connection for use with escaping.', $class ), E_USER_NOTICE );
     1049        }
    10461050        return addslashes( $string );
    10471051    }
Note: See TracChangeset for help on using the changeset viewer.