Ticket #1708: trunk-object-property-typo.txt

File trunk-object-property-typo.txt, 0.5 kB (added by splee, 3 years ago)

patch for the trunk

Line 
1 Index: functions.php
2 ===================================================================
3 --- functions.php       (revision 2917)
4 +++ functions.php       (working copy)
5 @@ -274,7 +274,7 @@
6         if ('home' == $setting && '' == $cache_settings->home)
7                 return apply_filters('option_' . $setting, $cache_settings->siteurl);
8  
9 -       if ( isset($cache_settings->$setting) ) :
10 +       if ( isset($cache_settings->setting) ) :
11                 return apply_filters('option_' . $setting, $cache_settings->$setting);
12         else :
13                 // for these cases when we're asking for an unknown option