Ticket #5272: 5272.patch
File 5272.patch, 1.1 KB (added by , 17 years ago) |
---|
-
wp-includes/canonical.php
4 4 function redirect_canonical($requested_url=NULL, $do_redirect=true) { 5 5 global $wp_rewrite, $posts, $is_IIS; 6 6 7 if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) || is_preview() )7 if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) || is_preview()|| is_empty() ) 8 8 return; 9 9 10 10 if ( !$requested_url ) { … … 198 198 199 199 add_action('template_redirect', 'redirect_canonical'); 200 200 201 ?> 202 No newline at end of file 201 ?> -
wp-includes/query.php
216 216 return false; 217 217 } 218 218 219 function is_empty () { 220 global $wp_query; 221 return empty($post); 222 } 223 219 224 function is_singular() { 220 225 global $wp_query; 221 226