Make WordPress Core

Changeset 15233


Ignore:
Timestamp:
06/11/2010 06:15:30 PM (15 years ago)
Author:
wpmuguru
Message:

non js support in options permalink, props filosofo, fixes #13856

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-permalink.php

    r15132 r15233  
    9999
    100100    if ( isset( $_POST['permalink_structure'] ) ) {
    101         $permalink_structure = $_POST['permalink_structure'];
     101        if ( isset( $_POST['selection'] ) && 'custom' != $_POST['selection'] )
     102            $permalink_structure = $_POST['selection'];
     103        else
     104            $permalink_structure = $_POST['permalink_structure'];
     105
    102106        if ( ! empty( $permalink_structure ) ) {
    103107            $permalink_structure = preg_replace( '#/+#', '/', '/' . str_replace( '#', '', $permalink_structure ) );
Note: See TracChangeset for help on using the changeset viewer.