Ticket #13856: update-permalinks-for-non-js.diff
File update-permalinks-for-non-js.diff, 756 bytes (added by , 15 years ago) |
---|
-
wp-admin/options-permalink.php
98 98 check_admin_referer('update-permalink'); 99 99 100 100 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 102 106 if ( ! empty( $permalink_structure ) ) { 103 107 $permalink_structure = preg_replace( '#/+#', '/', '/' . str_replace( '#', '', $permalink_structure ) ); 104 108 if ( $prefix && $blog_prefix )