WordPress.org

Make WordPress Core

Ticket #24365: 24365-2.diff

File 24365-2.diff, 547 bytes (added by leewillis77, 10 months ago)

Revised patch

  • wp-admin/includes/upgrade.php

     
    14271427        if ( 'siteurl' == $setting || 'home' == $setting || 'category_base' == $setting || 'tag_base' == $setting ) 
    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 ); 
     1431 
    14351432} 
    14361433 
    14371434/**