Changeset 13830 for trunk/wp-includes/query.php
- Timestamp:
- 03/26/2010 07:36:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r13787 r13830 1716 1716 $q[ $q['post_type'] ] = str_replace('%2F', '/', urlencode(urldecode($q[ $q['post_type'] ]))); 1717 1717 $post_type_object = get_post_type_object($q['post_type']); 1718 if ( ! $post_type_object->hierarchical || strpos($q[ $q['post_type'] ], '/') === false) { 1718 if ( ! $post_type_object->hierarchical || strpos($q[ $q['post_type'] ], '/') === false) { 1719 1719 $q['name'] = $q[ $q['post_type'] ] = sanitize_title($q[ $q['post_type'] ]); 1720 $where .= " AND $wpdb->posts.post_name = '" . $q[ $q['post_type'] ] . "'"; 1720 $where .= " AND $wpdb->posts.post_name = '" . $q[ $q['post_type'] ] . "'"; 1721 1721 } else { 1722 1722 // Hierarchical post type, need to look deeper to see if its an attachment or this post_type
Note: See TracChangeset
for help on using the changeset viewer.