updated theme Twenty Nineteen version 3.3
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add postMessage support for site title and description for the Theme Customizer.
|
||||
* Adds postMessage support for site title and description for the Theme Customizer.
|
||||
*
|
||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||
*/
|
||||
@ -75,6 +75,7 @@ function twentynineteen_customize_register( $wp_customize ) {
|
||||
$wp_customize,
|
||||
'primary_color_hue',
|
||||
array(
|
||||
'label' => __( 'Custom Color', 'twentynineteen' ),
|
||||
'description' => __( 'Apply a custom color for buttons, links, featured images, etc.', 'twentynineteen' ),
|
||||
'section' => 'colors',
|
||||
'mode' => 'hue',
|
||||
@ -104,7 +105,7 @@ function twentynineteen_customize_register( $wp_customize ) {
|
||||
add_action( 'customize_register', 'twentynineteen_customize_register' );
|
||||
|
||||
/**
|
||||
* Render the site title for the selective refresh partial.
|
||||
* Renders the site title for the selective refresh partial.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@ -113,7 +114,7 @@ function twentynineteen_customize_partial_blogname() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the site tagline for the selective refresh partial.
|
||||
* Renders the site tagline for the selective refresh partial.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@ -122,7 +123,7 @@ function twentynineteen_customize_partial_blogdescription() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind JS handlers to instantly live-preview changes.
|
||||
* Binds JS handlers to instantly live-preview changes.
|
||||
*/
|
||||
function twentynineteen_customize_preview_js() {
|
||||
wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181214', array( 'in_footer' => true ) );
|
||||
@ -130,18 +131,18 @@ function twentynineteen_customize_preview_js() {
|
||||
add_action( 'customize_preview_init', 'twentynineteen_customize_preview_js' );
|
||||
|
||||
/**
|
||||
* Load dynamic logic for the customizer controls area.
|
||||
* Loads dynamic logic for the customizer controls area.
|
||||
*/
|
||||
function twentynineteen_panels_js() {
|
||||
wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20181214', array( 'in_footer' => true ) );
|
||||
wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20250717', array( 'in_footer' => true ) );
|
||||
}
|
||||
add_action( 'customize_controls_enqueue_scripts', 'twentynineteen_panels_js' );
|
||||
|
||||
/**
|
||||
* Sanitize custom color choice.
|
||||
* Sanitizes custom color choice.
|
||||
*
|
||||
* @param string $choice Whether image filter is active.
|
||||
* @return string
|
||||
* @return string Sanitized color option.
|
||||
*/
|
||||
function twentynineteen_sanitize_color_option( $choice ) {
|
||||
$valid = array(
|
||||
|
||||
Reference in New Issue
Block a user