From 1a8683be07aefa9de16aea28c4aef8f0bb58180c Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Fri, 11 Jun 2010 18:15:30 +0000 Subject: [PATCH] non js support in options permalink, props filosofo, fixes #13856 git-svn-id: https://develop.svn.wordpress.org/trunk@15233 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/options-permalink.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index b73e1bf47e..35cacf4f6d 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -98,7 +98,11 @@ if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { check_admin_referer('update-permalink'); if ( isset( $_POST['permalink_structure'] ) ) { - $permalink_structure = $_POST['permalink_structure']; + if ( isset( $_POST['selection'] ) && 'custom' != $_POST['selection'] ) + $permalink_structure = $_POST['selection']; + else + $permalink_structure = $_POST['permalink_structure']; + if ( ! empty( $permalink_structure ) ) { $permalink_structure = preg_replace( '#/+#', '/', '/' . str_replace( '#', '', $permalink_structure ) ); if ( $prefix && $blog_prefix )