* not needed or the string of the URL
*/
function redirect_canonical( $requested_url = null, $do_redirect = true ) {
* not needed or the string of the URL
*/
function redirect_canonical( $requested_url = null, $do_redirect = true ) {
- global $wp_rewrite, $is_iis7, $wp_query, $wpdb;
+ global $wp_rewrite, $is_IIS, $wp_query, $wpdb;
if ( !empty($redirect['query']) ) {
if ( is_category() ) {
$redirect['query'] = remove_query_arg( array( 'category_name', 'category', 'cat'), $redirect['query']);
if ( !empty($redirect['query']) ) {
if ( is_category() ) {
$redirect['query'] = remove_query_arg( array( 'category_name', 'category', 'cat'), $redirect['query']);
$addl_path = !empty( $addl_path ) ? trailingslashit($addl_path) : '';
if ( get_query_var( 'withcomments' ) )
$addl_path .= 'comments/';
$addl_path = !empty( $addl_path ) ? trailingslashit($addl_path) : '';
if ( get_query_var( 'withcomments' ) )
$addl_path .= 'comments/';