Changeset 30629 for trunk/src/wp-includes/post.php
- Timestamp:
- 11/30/2014 04:48:54 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r30545 r30629 3704 3704 * namespace than posts so page slugs are allowed to overlap post slugs. 3705 3705 */ 3706 $check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND post_type = %sAND ID != %d AND post_parent = %d LIMIT 1";3706 $check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND post_type IN ( %s, 'attachment' ) AND ID != %d AND post_parent = %d LIMIT 1"; 3707 3707 $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $slug, $post_type, $post_ID, $post_parent ) ); 3708 3708
Note: See TracChangeset
for help on using the changeset viewer.