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:
parent
29b2070ac9
commit
5558c249f9
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue