Changeset 46848
- Timestamp:
- 12/09/2019 02:39:30 PM (5 years ago)
- Location:
- branches/5.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php
r46614 r46848 206 206 ); 207 207 208 /* Enable Header Search --------- */208 /* Enable Header Search ----------------------------------------------- */ 209 209 210 210 $wp_customize->add_setting( … … 224 224 'priority' => 10, 225 225 'label' => __( 'Show search in header', 'twentytwenty' ), 226 ) 227 ); 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' ), 226 247 ) 227 248 ); -
branches/5.3/src/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php
r46614 r46848 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', true ) ) : ?> 11 11 <div class="author-bio"> 12 12 <div class="author-title-wrapper">
Note: See TracChangeset
for help on using the changeset viewer.