Consistent use or disuse of trailing slashes in URLs according to user preference. props MathiasBynens. fixes #1485

git-svn-id: http://svn.automattic.com/wordpress/trunk@4886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith
2007-02-15 07:07:12 +00:00
parent f639cbcd24
commit dfeeedc8da
5 changed files with 35 additions and 14 deletions

View File

@@ -148,6 +148,7 @@ function url_to_postid($url) {
class WP_Rewrite {
var $permalink_structure;
var $use_trailing_slashes;
var $category_base;
var $category_structure;
var $author_base = 'author';
@@ -876,6 +877,7 @@ class WP_Rewrite {
unset($this->search_structure);
unset($this->feed_structure);
unset($this->comment_feed_structure);
$this->use_trailing_slashes = ( substr($this->permalink_structure, -1, 1) == '/' ) ? true : false;
}
function set_permalink_structure($permalink_structure) {