Make WordPress Core

Changeset 24625


Ignore:
Timestamp:
07/10/2013 04:01:20 AM (12 years ago)
Author:
nacin
Message:

Use maybe_unserialize() in upgrade.php's private get_option() function. This actually predates maybe_unserialize() ([2487], [3234]). props leewillis77. fixes #24365.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r24584 r24625  
    14281428        $option = untrailingslashit( $option );
    14291429
    1430     @ $kellogs = unserialize( $option );
    1431     if ( $kellogs !== false )
    1432         return $kellogs;
    1433     else
    1434         return $option;
     1430    return maybe_unserialize( $option );
    14351431}
    14361432
Note: See TracChangeset for help on using the changeset viewer.