- Timestamp:
- 03/01/2016 10:17:20 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentythirteen/functions.php
r35885 r36797 536 536 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 537 537 $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 538 539 if ( isset( $wp_customize->selective_refresh ) ) { 540 $wp_customize->selective_refresh->add_partial( 'blogname', array( 541 'selector' => '.site-title', 542 'container_inclusive' => false, 543 'render_callback' => 'twentythirteen_customize_partial_blogname', 544 ) ); 545 $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 546 'selector' => '.site-description', 547 'container_inclusive' => false, 548 'render_callback' => 'twentythirteen_customize_partial_blogdescription', 549 ) ); 550 } 538 551 } 539 552 add_action( 'customize_register', 'twentythirteen_customize_register' ); 553 554 /** 555 * Render the site title for the selective refresh partial. 556 * 557 * @since Twenty Thirteen 1.9 558 * @see twentythirteen_customize_register() 559 * 560 * @return void 561 */ 562 function twentythirteen_customize_partial_blogname() { 563 bloginfo( 'name' ); 564 } 565 566 /** 567 * Render the site tagline for the selective refresh partial. 568 * 569 * @since Twenty Thirteen 1.9 570 * @see twentythirteen_customize_register() 571 * 572 * @return void 573 */ 574 function twentythirteen_customize_partial_blogdescription() { 575 bloginfo( 'description' ); 576 } 540 577 541 578 /**
Note: See TracChangeset
for help on using the changeset viewer.