diff --git a/includes/settings.php b/includes/settings.php index a23c2b2..6ec4711 100644 --- a/includes/settings.php +++ b/includes/settings.php @@ -63,24 +63,83 @@ public function check( $args = array() ) { checked_array( $option_value, $op_value ); ?>/>
get_default_args( $args ); + + $field_id = $args['id']; + $description = $args['desc']; + $default = empty( $args['default'] ) ? array() : $args['default']; + if ( empty( $field_id ) ) { + return; + } + + $option_value = get_option( $field_id, $field_id, $default ); + + ?>get_default_args( $args ); + + $field_id = $args['id']; + $description = $args['desc']; + $default = empty( $args['default'] ) ? array() : $args['default']; + if ( empty( $field_id ) ) { + return; + } + + $option_value = get_option( $field_id, $field_id, $default ); + ?>get_default_args( $args ); + $field_id = $args['id']; + $description = $args['desc']; + $options = $args['options']; + $default = $args['default']; + if ( ! $options || empty( $field_id ) ) { + return; + } + + $option_value = get_option( $field_id, $field_id, $default ); + + ?>