Menus: Ensure backslashes are saved in menu item fields.
This was a regression introduced in [36510] which caused menu item fields to not save field content with backslashes in them. Props westonruter. See #14134. git-svn-id: https://develop.svn.wordpress.org/trunk@36613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f306793b2c
commit
572578b8f1
@ -62,9 +62,9 @@ if ( isset( $_POST['nav-menu-data'] ) ) {
|
||||
if ( empty( $_POST[ $matches[1] ] ) ) {
|
||||
$_POST[ $matches[1] ] = array();
|
||||
}
|
||||
$_POST[$matches[1]][(int)$matches[2]] = $post_input_data->value;
|
||||
$_POST[ $matches[1] ][ (int) $matches[2] ] = wp_slash( $post_input_data->value );
|
||||
} else {
|
||||
$_POST[$post_input_data->name] = $post_input_data->value;
|
||||
$_POST[ $post_input_data->name ] = wp_slash( $post_input_data->value );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user