?> lse; } ?>rent ) $result = " $type='$type'"; else $result = ''; if ( $echo ) echo $result; return $result; } ?> %d", get_query_var('day')); $post_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE $where AND post_status = 'publish'"); if ( !$post_id ) return false; return get_permalink($post_id); } add_action('template_redirect', 'redirect_canonical'); ?> tion is_rtl() { global $wp_locale; return $wp_locale->is_rtl(); } ?>