mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
make get_alloptions() consistent with get_option() WRT tag_base untrailingslashit()ing
git-svn-id: http://svn.automattic.com/wordpress/trunk@8212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c94918ca9f
commit
a8dd6cb845
@ -384,7 +384,7 @@ function get_alloptions() {
|
||||
foreach ( $options as $option ) {
|
||||
// "When trying to design a foolproof system,
|
||||
// never underestimate the ingenuity of the fools :)" -- Dougal
|
||||
if ( in_array( $option->option_name, array( 'siteurl', 'home', 'category_base' ) ) )
|
||||
if ( in_array( $option->option_name, array( 'siteurl', 'home', 'category_base', 'tag_base' ) ) )
|
||||
$option->option_value = untrailingslashit( $option->option_value );
|
||||
$value = maybe_unserialize( $option->option_value );
|
||||
$all_options->{$option->option_name} = apply_filters( 'pre_option_' . $option->option_name, $value );
|
||||
|
Loading…
Reference in New Issue
Block a user