Skip to content

Commit

Permalink
fixes generator undefined index in functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jan 12, 2015
1 parent 609ef0c commit c4edb70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ function ap_core_generator() {
echo wp_kses_post( $ap_core_version );
}
$options = get_option( 'ap_core_theme_options' );
if ($options['generator'] == true) {
if ( isset( $options['generator'] ) && $options['generator'] == true) {
add_action( 'wp_head', 'ap_core_generator' );
}
}
Expand Down

0 comments on commit c4edb70

Please sign in to comment.