mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
non js support in options permalink, props filosofo, fixes #13856
git-svn-id: https://develop.svn.wordpress.org/trunk@15233 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7b7115867e
commit
1a8683be07
@ -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 )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user