WordPress.org

Make WordPress Core

Ticket #12560: ms-blogs.php.patch

File ms-blogs.php.patch, 449 bytes (added by mastermind, 4 years ago)

One-liner, see comment 4

  • ms-blogs.php

    old new  
    334334        if ( 'siteurl' == $setting || 'home' == $setting || 'category_base' == $setting ) 
    335335                $value = untrailingslashit( $value ); 
    336336 
    337         if (! @unserialize( $value ) ) 
     337        if (is_scalar( $value ) ) 
    338338                $value = stripslashes( $value ); 
    339339 
    340340        return apply_filters( 'blog_option_' . $setting, maybe_unserialize( $value ), $blog_id );