Changeset 37985 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 07/06/2016 12:39:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r37674 r37985 1136 1136 function _weak_escape( $string ) { 1137 1137 if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) ) 1138 _deprecated_function( __METHOD__, '3.6 ', 'wpdb::prepare() or esc_sql()' );1138 _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' ); 1139 1139 return addslashes( $string ); 1140 1140 } … … 1210 1210 public function escape( $data ) { 1211 1211 if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) ) 1212 _deprecated_function( __METHOD__, '3.6 ', 'wpdb::prepare() or esc_sql()' );1212 _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' ); 1213 1213 if ( is_array( $data ) ) { 1214 1214 foreach ( $data as $k => $v ) { … … 1279 1279 // This is not meant to be foolproof -- but it will catch obviously incorrect usage. 1280 1280 if ( strpos( $query, '%' ) === false ) { 1281 _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9 ' );1281 _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9.0' ); 1282 1282 } 1283 1283 … … 3211 3211 */ 3212 3212 public function supports_collation() { 3213 _deprecated_function( __FUNCTION__, '3.5 ', 'wpdb::has_cap( \'collation\' )' );3213 _deprecated_function( __FUNCTION__, '3.5.0', 'wpdb::has_cap( \'collation\' )' ); 3214 3214 return $this->has_cap( 'collation' ); 3215 3215 }
Note: See TracChangeset
for help on using the changeset viewer.