settings ) || !is_array( $omega->settings ) ) $omega->settings = get_option( 'omega_theme_settings', $defaults ); /* If the option isn't set but the default is, set the option to the default. */ if ( !isset( $omega->settings[ $option ] ) && isset( $defaults[ $option ] ) ) $omega->settings[ $option ] = $defaults[ $option ]; /* If no option is found at this point, return false. */ if ( !isset( $omega->settings[ $option ] ) ) return false; /* If the specific option is an array, return it. */ if ( is_array( $omega->settings[ $option ] ) ) return $omega->settings[ $option ]; /* Strip slashes from the setting and return. */ else return wp_kses_stripslashes( $omega->settings[ $option ] ); } /** * Sets up a default array of theme settings for use with the theme. Theme developers should filter the * "omega_default_theme_settings" hook to define any default theme settings. WordPress does not * provide a hook for default settings at this time. * * @since 0.9.0 * @access public * @return array $settings The default theme settings. */ function omega_get_default_theme_settings() { return apply_filters( 'omega_default_theme_settings', array() ); } ?>