Changeset 9714
- Timestamp:
- 11/15/2008 05:56:44 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
wp-admin/edit-attachment-rows.php (modified) (2 diffs)
-
wp-includes/post.php (modified) (1 diff)
-
wp-includes/query.php (modified) (2 diffs)
-
wp-includes/rss.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-attachment-rows.php
r9690 r9714 25 25 <?php 26 26 if ( have_posts() ) { 27 $bgcolor = '';28 27 add_filter('the_title','wp_specialchars'); 29 28 while (have_posts()) : the_post(); … … 201 200 } else { 202 201 ?> 203 <tr style='background-color: <?php echo $bgcolor; ?>'>202 <tr> 204 203 <td colspan="8"><?php _e('No posts found.') ?></td> 205 204 </tr> -
trunk/wp-includes/post.php
r9699 r9714 1900 1900 } 1901 1901 1902 return get_post($page, $output, $filter); 1902 $page = get_post($page, $output, $filter); 1903 return $page; 1903 1904 } 1904 1905 -
trunk/wp-includes/query.php
r9596 r9714 1741 1741 // added slashes screw with quote grouping when done early, so done later 1742 1742 $q['s'] = stripslashes($q['s']); 1743 if ( $q['sentence']) {1743 if ( !empty($q['sentence']) ) { 1744 1744 $q['search_terms'] = array($q['s']); 1745 1745 } else { 1746 preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $q[ s], $matches);1746 preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $q['s'], $matches); 1747 1747 $q['search_terms'] = array_map(create_function('$a', 'return trim($a, "\\"\'\\n\\r ");'), $matches[0]); 1748 1748 } 1749 $n = ($q['exact']) ? '' : '%';1749 $n = !empty($q['exact']) ? '' : '%'; 1750 1750 $searchand = ''; 1751 1751 foreach( (array) $q['search_terms'] as $term) { … … 1755 1755 } 1756 1756 $term = $wpdb->escape($q['s']); 1757 if ( !$q['sentence']&& count($q['search_terms']) > 1 && $q['search_terms'][0] != $q['s'] )1757 if (empty($q['sentence']) && count($q['search_terms']) > 1 && $q['search_terms'][0] != $q['s'] ) 1758 1758 $search .= " OR ($wpdb->posts.post_title LIKE '{$n}{$term}{$n}') OR ($wpdb->posts.post_content LIKE '{$n}{$term}{$n}')"; 1759 1759 -
trunk/wp-includes/rss.php
r9699 r9714 539 539 $resp = wp_remote_request($url, array('headers' => $headers, 'timeout' => MAGPIE_FETCH_TIME_OUT)); 540 540 if ( is_wp_error($resp) ) { 541 $error = array_shift($resp->errors); 542 541 543 $resp = new stdClass; 542 544 $resp->status = 500; 545 $resp->response_code = 500; 546 $resp->error = $error[0] . "\n"; //\n = Snoopy compatibility 543 547 return $resp; 544 548 } 545 549 $response = new stdClass; 546 550 $response->status = $resp['response']['code']; 551 $response->response_code = $resp['response']['code']; 547 552 $response->headers = $resp['headers']; 548 553 $response->results = $resp['body'];
Note: See TracChangeset
for help on using the changeset viewer.