Make WordPress Core

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

File 1.5-object-property-typo.txt, 644 bytes (added by splee, 19 years ago)

patch for the 1.5 branch

Line 
1Index: wp-includes/functions.php
2===================================================================
3--- wp-includes/functions.php   (revision 2917)
4+++ wp-includes/functions.php   (working copy)
5@@ -243,7 +243,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
14@@ -1849,4 +1849,4 @@
15        }       
16 }
17 
18-?>
19\ No newline at end of file
20+?>