mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Consistent use or disuse of trailing slashes in URLs according to user preference. props MathiasBynens. fixes #1485
git-svn-id: https://develop.svn.wordpress.org/trunk@4886 602fd350-edb4-49c9-b593-d223f7449a82
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