WordPress.org

Make WordPress Core

Ticket #12560: get_blog_option_unserialize_patch.diff

File get_blog_option_unserialize_patch.diff, 538 bytes (added by RogerTheriault, 4 years ago)
  • wp-includes/ms-blogs.php

     
    315315        if ( 'siteurl' == $setting || 'home' == $setting || 'category_base' == $setting ) 
    316316                $value = untrailingslashit( $value ); 
    317317 
    318         if (! @unserialize( $value ) ) 
     318        if (! maybe_unserialize( $value ) ) 
    319319                $value = stripslashes( $value ); 
    320320 
    321321        return apply_filters( 'blog_option_' . $setting, maybe_unserialize( $value ), $blog_id );