Fix help tab array

This commit is contained in:
Robin Cornett
2015-11-12 18:43:59 -05:00
parent 8b76d86214
commit 0fd159addc
@@ -772,18 +772,16 @@ class Display_Featured_Image_Genesis_Settings {
'content' => $feed_help, 'content' => $feed_help,
), ),
); );
foreach ( $help_tabs as $tab ) {
$screen->add_help_tab( $tab );
}
if ( $this->post_types ) { if ( $this->post_types ) {
$screen->add_help_tab( array( $help_tabs[] = array(
'id' => 'displayfeaturedimage_cpt-help', 'id' => 'displayfeaturedimage_cpt-help',
'title' => __( 'Custom Post Types', 'display-featured-image-genesis' ), 'title' => __( 'Custom Post Types', 'display-featured-image-genesis' ),
'content' => $cpt_help, 'content' => $cpt_help,
) ); );
}
foreach ( $help_tabs as $tab ) {
$screen->add_help_tab( $tab );
} }
} }
} }