mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Add tag_base to list of untrailingslashed options, and standardize the unslashing. Prevents /mytags//tagname/
git-svn-id: http://svn.automattic.com/wordpress/trunk@6153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c005340430
commit
0fb4233fdf
@ -218,8 +218,8 @@ function get_option($setting) {
|
||||
if ( 'home' == $setting && '' == $value )
|
||||
return get_option('siteurl');
|
||||
|
||||
if ( 'siteurl' == $setting || 'home' == $setting || 'category_base' == $setting )
|
||||
$value = preg_replace('|/+$|', '', $value);
|
||||
if ( in_array($setting, array('siteurl', 'home', 'category_base', 'tag_base')) )
|
||||
$value = untrailingslashit($value);
|
||||
|
||||
return apply_filters( 'option_' . $setting, maybe_unserialize($value) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user