mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-18 22:13:20 +09:00
Set empty options for CPT/author blocks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user