Remove extra slashes from permalink structure.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3ec0bc86c0
commit
884ebec4f5
|
@ -21,8 +21,8 @@ if ( $home != '' && $home != get_settings('siteurl') ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_POST['submit'])) {
|
if (isset($_POST['submit'])) {
|
||||||
update_option('permalink_structure', $_POST['permalink_structure']);
|
$permalink_structure = preg_replace('#/+/#', '/', $_POST['permalink_structure']);
|
||||||
$permalink_structure = $_POST['permalink_structure'];
|
update_option('permalink_structure', $permalink_structure);
|
||||||
|
|
||||||
update_option('category_base', $_POST['category_base']);
|
update_option('category_base', $_POST['category_base']);
|
||||||
$category_base = $_POST['category_base'];
|
$category_base = $_POST['category_base'];
|
||||||
|
|
Loading…
Reference in New Issue