Changeset 9259 for trunk/wp-includes/post.php
- Timestamp:
- 10/20/2008 09:55:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r9252 r9259 2282 2282 2283 2283 // expected_slashed ($post_name) 2284 $post_name_check = $wpdb->get_var( $wpdb->prepare( "SELECT post_name FROM $wpdb->posts WHERE post_name = '$post_name' AND post_status = 'inherit' AND ID != %d LIMIT 1", $post_ID));2284 $post_name_check = $wpdb->get_var( $wpdb->prepare( "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND post_status = 'inherit' AND ID != %d LIMIT 1", $post_name, $post_ID)); 2285 2285 2286 2286 if ($post_name_check) { … … 2289 2289 $alt_post_name = $post_name . "-$suffix"; 2290 2290 // expected_slashed ($alt_post_name, $post_name) 2291 $post_name_check = $wpdb->get_var( $wpdb->prepare( "SELECT post_name FROM $wpdb->posts WHERE post_name = '$alt_post_name' AND post_status = 'inherit' AND ID != %d AND post_parent = %d LIMIT 1", $post_ID, $post_parent));2291 $post_name_check = $wpdb->get_var( $wpdb->prepare( "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND post_status = 'inherit' AND ID != %d AND post_parent = %d LIMIT 1", $alt_post_name, $post_ID, $post_parent)); 2292 2292 $suffix++; 2293 2293 }
Note: See TracChangeset
for help on using the changeset viewer.