WordPress.org

Make WordPress Core

Changeset 38133


Ignore:
Timestamp:
07/21/16 22:44:26 (17 months ago)
Author:
SergeyBiryukov
Message:

Database: Replace incorrect use of E_USER_NOTICE in wpdb::_real_escape() with the version number where the message was added.

Props andizer.
Fixes #36403.

File:
1 edited

Legend:

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

    r38125 r38133  
    11631163        if ( function_exists( '__' ) ) { 
    11641164            /* translators: %s: database access abstraction class, usually wpdb or a class extending wpdb */ 
    1165             _doing_it_wrong( $class, sprintf( __( '%s must set a database connection for use with escaping.' ), $class ), E_USER_NOTICE ); 
     1165            _doing_it_wrong( $class, sprintf( __( '%s must set a database connection for use with escaping.' ), $class ), '3.6.0' ); 
    11661166        } else { 
    1167             _doing_it_wrong( $class, sprintf( '%s must set a database connection for use with escaping.', $class ), E_USER_NOTICE ); 
     1167            _doing_it_wrong( $class, sprintf( '%s must set a database connection for use with escaping.', $class ), '3.6.0' ); 
    11681168        } 
    11691169        return addslashes( $string ); 
Note: See TracChangeset for help on using the changeset viewer.