Make WordPress Core


Ignore:
Timestamp:
11/20/2014 04:45:48 PM (10 years ago)
Author:
johnbillion
Message:

Correct an SQL syntax error introduced in r30158. Adds tests.

Fixes #30339
See #18962
Props julien731

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r30287 r30480  
    37213721            do {
    37223722                $alt_post_name = _truncate_post_slug( $slug, 200 - ( strlen( $suffix ) + 1 ) ) . "-$suffix";
    3723                 $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $alt_post_name, $post_ID, $post_parent ) );
     3723                $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $alt_post_name, $post_type, $post_ID, $post_parent ) ); 
    37243724                $suffix++;
    37253725            } while ( $post_name_check );
Note: See TracChangeset for help on using the changeset viewer.