Set empty options for CPT/author blocks

This commit is contained in:
Robin Cornett
2019-06-26 08:58:16 -04:00
parent 031c05c47b
commit f7fd26c803
4 changed files with 15 additions and 3 deletions
@@ -40,7 +40,10 @@ class DisplayFeaturedImageGenesisWidgetsForm {
$output = 'objects';
$post_types = get_post_types( $args, $output );
$options['post'] = __( 'Posts', 'display-featured-image-genesis' );
$options = array(
'' => '--',
'post' => __( 'Posts', 'display-featured-image-genesis' ),
);
foreach ( $post_types as $post_type ) {
$options[ $post_type->name ] = $post_type->label;
}