From 5558c249f9bd83e126a4da63dba7a7a7002bf86b Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Fri, 11 Jun 2010 18:15:30 +0000 Subject: [PATCH] non js support in options permalink, props filosofo, fixes #13856 git-svn-id: http://svn.automattic.com/wordpress/trunk@15233 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 )