Changeset 24724 for trunk/wp-includes/wp-db.php
- Timestamp:
- 07/17/2013 09:08:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r24718 r24724 861 861 */ 862 862 function _weak_escape( $string ) { 863 if ( func_num_args() === 1 )863 if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) ) 864 864 _deprecated_function( __METHOD__, '3.6', 'wpdb::prepare() or esc_sql()' ); 865 865 return addslashes( $string ); … … 919 919 */ 920 920 function escape( $data ) { 921 if ( func_num_args() === 1 )921 if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) ) 922 922 _deprecated_function( __METHOD__, '3.6', 'wpdb::prepare() or esc_sql()' ); 923 923 if ( is_array( $data ) ) {
Note: See TracChangeset
for help on using the changeset viewer.