Make WordPress Core


Ignore:
Timestamp:
06/19/2013 10:12:36 PM (13 years ago)
Author:
nacin
Message:

Fix storage of illegal_names. Add an upgrade routine to fix bad values.

Merges [24448] to the 3.5 branch. Bump DB version by one.

props SergeyBiryukov.
fixes #23418.

Location:
branches/3.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5

  • branches/3.5/wp-includes/formatting.php

    r23348 r24449  
    28712871                case 'illegal_names':
    28722872                        if ( ! is_array( $value ) )
    2873                                 $value = explode( "\n", $value );
     2873                                $value = explode( ' ', $value );
    28742874
    28752875                        $value = array_values( array_filter( array_map( 'trim', $value ) ) );
Note: See TracChangeset for help on using the changeset viewer.