Permalink
Browse files

Replaced deprecated get_settings function with get_option

  • Loading branch information...
1 parent b6e9d04 commit 2b3de9e3f4bc01a9b43eb3b22cf9d167bdd03321 @splorp committed Mar 25, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 footer.php
  2. +1 −1 header.php
  3. +1 −1 sidebar.php
View
2 footer.php
@@ -8,7 +8,7 @@
<?php
global $options;
foreach ($options as $value) {
- if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
+ if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] ); }
}
?>
View
2 header.php
@@ -12,7 +12,7 @@
<?php
global $options;
foreach ($options as $value) {
- if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
+ if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] ); }
}
?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
View
2 sidebar.php
@@ -95,7 +95,7 @@
// Otherwise insert default sidebar elements
global $options;
foreach ($options as $value) {
- if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] );
+ if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] );
}
}

0 comments on commit 2b3de9e

Please sign in to comment.