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
This commit is contained in:
wpmuguru 2010-06-11 18:15:30 +00:00
parent 29b2070ac9
commit 5558c249f9
1 changed files with 5 additions and 1 deletions

View File

@ -98,7 +98,11 @@ if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) {
check_admin_referer('update-permalink');
if ( isset( $_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 )