mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 22:54:36 +00:00
Fix storage of illegal_names. Add an upgrade routine to fix bad values.
props SergeyBiryukov. see #23418. for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@24448 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2901,7 +2901,7 @@ function sanitize_option($option, $value) {
|
||||
|
||||
case 'illegal_names':
|
||||
if ( ! is_array( $value ) )
|
||||
$value = explode( "\n", $value );
|
||||
$value = explode( ' ', $value );
|
||||
|
||||
$value = array_values( array_filter( array_map( 'trim', $value ) ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user