mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Remove trailing whites and double semicolons.
git-svn-id: https://develop.svn.wordpress.org/trunk@13830 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1715,9 +1715,9 @@ class WP_Query {
|
||||
if ( !empty($q['post_type']) && !empty($q[ $q['post_type'] ]) ) {
|
||||
$q[ $q['post_type'] ] = str_replace('%2F', '/', urlencode(urldecode($q[ $q['post_type'] ])));
|
||||
$post_type_object = get_post_type_object($q['post_type']);
|
||||
if ( ! $post_type_object->hierarchical || strpos($q[ $q['post_type'] ], '/') === false) {
|
||||
if ( ! $post_type_object->hierarchical || strpos($q[ $q['post_type'] ], '/') === false) {
|
||||
$q['name'] = $q[ $q['post_type'] ] = sanitize_title($q[ $q['post_type'] ]);
|
||||
$where .= " AND $wpdb->posts.post_name = '" . $q[ $q['post_type'] ] . "'";
|
||||
$where .= " AND $wpdb->posts.post_name = '" . $q[ $q['post_type'] ] . "'";
|
||||
} else {
|
||||
// Hierarchical post type, need to look deeper to see if its an attachment or this post_type
|
||||
if ( isset($this->queried_object_id) ) {
|
||||
|
||||
Reference in New Issue
Block a user