mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-11 18:46:03 +09:00
Add selective refresh support to widgets for customizer
This commit is contained in:
@@ -32,8 +32,9 @@ class Display_Featured_Image_Genesis_Author_Widget extends WP_Widget {
|
||||
);
|
||||
|
||||
$widget_ops = array(
|
||||
'classname' => 'author-profile',
|
||||
'description' => __( 'Displays user profile block with Gravatar', 'display-featured-image-genesis' ),
|
||||
'classname' => 'author-profile',
|
||||
'description' => __( 'Displays user profile block with Gravatar', 'display-featured-image-genesis' ),
|
||||
'customize_selective_refresh' => true,
|
||||
);
|
||||
|
||||
$control_ops = array(
|
||||
|
||||
@@ -43,8 +43,9 @@ class Display_Featured_Image_Genesis_Widget_CPT extends WP_Widget {
|
||||
);
|
||||
|
||||
$widget_ops = array(
|
||||
'classname' => 'featured-posttype',
|
||||
'description' => __( 'Displays a post type archive with its featured image', 'display-featured-image-genesis' ),
|
||||
'classname' => 'featured-posttype',
|
||||
'description' => __( 'Displays a post type archive with its featured image', 'display-featured-image-genesis' ),
|
||||
'customize_selective_refresh' => true,
|
||||
);
|
||||
|
||||
$control_ops = array(
|
||||
|
||||
@@ -44,8 +44,9 @@ class Display_Featured_Image_Genesis_Widget_Taxonomy extends WP_Widget {
|
||||
);
|
||||
|
||||
$widget_ops = array(
|
||||
'classname' => 'featured-term',
|
||||
'description' => __( 'Displays a term with its featured image', 'display-featured-image-genesis' ),
|
||||
'classname' => 'featured-term',
|
||||
'description' => __( 'Displays a term with its featured image', 'display-featured-image-genesis' ),
|
||||
'customize_selective_refresh' => true,
|
||||
);
|
||||
|
||||
$control_ops = array(
|
||||
|
||||
Reference in New Issue
Block a user