WordPress.org

Make WordPress Core

Ticket #1412: 1412.diff

File 1412.diff, 632 bytes (added by westi, 9 years ago)

The worlds shortest patch

  • wp-includes/functions.php

     
    263263                        $option->option_value = preg_replace('|/+$|', '', $option->option_value); 
    264264                if ( 'category_base' == $option->option_name ) 
    265265                        $option->option_value = preg_replace('|/+$|', '', $option->option_value); 
    266                 $value = maybe_unserialize($option->option_value); 
    267266                $all_options->{$option->option_name} = apply_filters('pre_option_' . $option->option_name, $value); 
    268267        } 
    269268        return apply_filters('all_options', $all_options);