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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user