Changeset 11978 for trunk/wp-includes/functions.php
- Timestamp:
- 09/27/2009 05:33:56 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r11971 r11978 498 498 wp_protect_special_option( $option_name ); 499 499 500 $safe_option_name = $wpdb->escape( $option_name );500 $safe_option_name = esc_sql( $option_name ); 501 501 $newvalue = sanitize_option( $option_name, $newvalue ); 502 502 … … 572 572 573 573 wp_protect_special_option( $name ); 574 $safe_name = $wpdb->escape( $name );574 $safe_name = esc_sql( $name ); 575 575 $value = sanitize_option( $name, $value ); 576 576 … … 655 655 return wp_cache_delete($transient, 'transient'); 656 656 } else { 657 $transient = '_transient_' . $wpdb->escape($transient);657 $transient = '_transient_' . esc_sql($transient); 658 658 return delete_option($transient); 659 659 } … … 683 683 $value = wp_cache_get($transient, 'transient'); 684 684 } else { 685 $transient_option = '_transient_' . $wpdb->escape($transient);685 $transient_option = '_transient_' . esc_sql($transient); 686 686 // If option is not in alloptions, it is not autoloaded and thus has a timeout 687 687 $alloptions = wp_load_alloptions(); 688 688 if ( !isset( $alloptions[$transient_option] ) ) { 689 $transient_timeout = '_transient_timeout_' . $wpdb->escape($transient);689 $transient_timeout = '_transient_timeout_' . esc_sql($transient); 690 690 if ( get_option($transient_timeout) < time() ) { 691 691 delete_option($transient_option); … … 724 724 $transient_timeout = '_transient_timeout_' . $transient; 725 725 $transient = '_transient_' . $transient; 726 $safe_transient = $wpdb->escape($transient);726 $safe_transient = esc_sql($transient); 727 727 if ( false === get_option( $safe_transient ) ) { 728 728 $autoload = 'yes'; … … 1413 1413 $array[$k] = add_magic_quotes( $v ); 1414 1414 } else { 1415 $array[$k] = $wpdb->escape( $v );1415 $array[$k] = esc_sql( $v ); 1416 1416 } 1417 1417 }
Note: See TracChangeset
for help on using the changeset viewer.