Remove extra slashes from permalink structure.
git-svn-id: https://develop.svn.wordpress.org/trunk@1689 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f7d9aadc28
commit
de9329d95b
@ -21,8 +21,8 @@ if ( $home != '' && $home != get_settings('siteurl') ) {
|
||||
}
|
||||
|
||||
if (isset($_POST['submit'])) {
|
||||
update_option('permalink_structure', $_POST['permalink_structure']);
|
||||
$permalink_structure = $_POST['permalink_structure'];
|
||||
$permalink_structure = preg_replace('#/+/#', '/', $_POST['permalink_structure']);
|
||||
update_option('permalink_structure', $permalink_structure);
|
||||
|
||||
update_option('category_base', $_POST['category_base']);
|
||||
$category_base = $_POST['category_base'];
|
||||
|
Loading…
Reference in New Issue
Block a user