Changeset 31090 for trunk/src/wp-includes/query.php
- Timestamp:
- 01/08/2015 07:04:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r31081 r31090 1655 1655 if ( strlen($qv['m']) > 9 ) { 1656 1656 $this->is_time = true; 1657 } else if ( strlen($qv['m']) > 7 ) {1657 } elseif ( strlen( $qv['m'] ) > 7 ) { 1658 1658 $this->is_day = true; 1659 } else if ( strlen($qv['m']) > 5 ) {1659 } elseif ( strlen( $qv['m'] ) > 5 ) { 1660 1660 $this->is_month = true; 1661 1661 } else { … … 1957 1957 $q['tag_slug__in'][] = $tag; 1958 1958 } 1959 } else if ( preg_match('/[+\r\n\t ]+/', $q['tag']) || !empty($q['cat']) ) {1959 } elseif ( preg_match('/[+\r\n\t ]+/', $q['tag'] ) || ! empty( $q['cat'] ) ) { 1960 1960 $tags = preg_split('/[+\r\n\t ]+/', $q['tag']); 1961 1961 foreach ( (array) $tags as $tag ) { … … 2468 2468 if ( $q['posts_per_page'] < -1 ) 2469 2469 $q['posts_per_page'] = abs($q['posts_per_page']); 2470 else 2470 elseif ( $q['posts_per_page'] == 0 ) 2471 2471 $q['posts_per_page'] = 1; 2472 2472 … … 4351 4351 } elseif ( in_array( $page_obj->post_title, $page ) ) { 4352 4352 return true; 4353 } else 4353 } elseif ( in_array( $page_obj->post_name, $page ) ) { 4354 4354 return true; 4355 4355 } else { … … 4569 4569 if ( $post->ID === get_queried_object_id() && ( $this->is_page() || $this->is_single() ) ) { 4570 4570 $more = 1; 4571 } else 4571 } elseif ( $this->is_feed() ) { 4572 4572 $more = 1; 4573 4573 } else {
Note: See TracChangeset
for help on using the changeset viewer.