Changeset 1693404
- Timestamp:
- 07/09/2017 09:32:30 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hubspot-tracking-code/trunk/hubspot-tracking-code.php
r1693298 r1693404 86 86 ); 87 87 88 // this is a hack because multisite doesn't recognize local options using either update_option or update_site_option... 89 if ( is_multisite() ) 90 { 91 global $wpdb; 92 93 $multisite_prefix = ( is_multisite() ? $wpdb->prefix : '' ); 94 $q = $wpdb->prepare(" 95 INSERT INTO " . $multisite_prefix . "options 96 ( option_name, option_value ) 97 VALUES ('hs_settings', %s)", serialize($opt)); 98 $wpdb->query($q); 99 } 100 else 101 update_option('hs_settings', $opt); 88 update_option('hs_settings', $opt); 102 89 } 103 90 }
Note: See TracChangeset
for help on using the changeset viewer.