WordPress.org

Make WordPress Core

Changeset 14211


Ignore:
Timestamp:
04/24/10 03:04:05 (5 years ago)
Author:
dd32
Message:

s/'%s'/%s/ in prepares. Props jamescollins. See r13673. See #12416

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r14197 r14211  
    338338            if ( defined( 'WP_INSTALLING' ) ) 
    339339                $suppress = $wpdb->suppress_errors(); 
    340             $row = $wpdb->get_row( $wpdb->prepare( "SELECT option_value FROM $wpdb->options WHERE option_name = '%s' LIMIT 1", $option ) ); 
     340            $row = $wpdb->get_row( $wpdb->prepare( "SELECT option_value FROM $wpdb->options WHERE option_name = %s LIMIT 1", $option ) ); 
    341341            if ( defined( 'WP_INSTALLING' ) ) 
    342342                $wpdb->suppress_errors( $suppress ); 
     
    630630 
    631631    // Get the ID, if no ID then return 
    632     $row = $wpdb->get_row( $wpdb->prepare( "SELECT autoload FROM $wpdb->options WHERE option_name = '%s'", $option ) ); 
     632    $row = $wpdb->get_row( $wpdb->prepare( "SELECT autoload FROM $wpdb->options WHERE option_name = %s", $option ) ); 
    633633    if ( is_null( $row ) ) 
    634634        return false; 
    635635    do_action( 'delete_option', $option ); 
    636     $result = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->options WHERE option_name = '%s'", $option) ); 
     636    $result = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->options WHERE option_name = %s", $option) ); 
    637637    if ( ! defined( 'WP_INSTALLING' ) ) { 
    638638        if ( 'yes' == $row->autoload ) { 
Note: See TracChangeset for help on using the changeset viewer.