diff --git a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php
index 1992b059a0..cec2496149 100644
a
|
b
|
if ( ! class_exists( 'TwentyTwenty_Customize' ) ) { |
205 | 205 | ) |
206 | 206 | ); |
207 | 207 | |
208 | | /* Enable Header Search --------- */ |
| 208 | /* Enable Header Search ----------------------------------------------- */ |
209 | 209 | |
210 | 210 | $wp_customize->add_setting( |
211 | 211 | 'enable_header_search', |
… |
… |
if ( ! class_exists( 'TwentyTwenty_Customize' ) ) { |
226 | 226 | ) |
227 | 227 | ); |
228 | 228 | |
| 229 | /* Show author bio ---------------------------------------------------- */ |
| 230 | |
| 231 | $wp_customize->add_setting( |
| 232 | 'show_author_bio', |
| 233 | array( |
| 234 | 'capability' => 'edit_theme_options', |
| 235 | 'default' => true, |
| 236 | 'sanitize_callback' => array( __CLASS__, 'sanitize_checkbox' ), |
| 237 | ) |
| 238 | ); |
| 239 | |
| 240 | $wp_customize->add_control( |
| 241 | 'show_author_bio', |
| 242 | array( |
| 243 | 'type' => 'checkbox', |
| 244 | 'section' => 'options', |
| 245 | 'priority' => 10, |
| 246 | 'label' => __( 'Show author bio', 'twentytwenty' ), |
| 247 | ) |
| 248 | ); |
| 249 | |
229 | 250 | /* Display full content or excerpts on the blog and archives --------- */ |
230 | 251 | |
231 | 252 | $wp_customize->add_setting( |
diff --git a/src/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php b/src/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php
index 657b94835d..f97aa226fd 100644
a
|
b
|
|
7 | 7 | * @since 1.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | | if ( (bool) get_the_author_meta( 'description' ) ) : ?> |
| 10 | if ( (bool) get_the_author_meta( 'description' ) && (bool) get_theme_mod( 'show_author_bio' ) ) : ?> |
11 | 11 | <div class="author-bio"> |
12 | 12 | <div class="author-title-wrapper"> |
13 | 13 | <div class="author-avatar vcard"> |