From 70166b72d14d9daac700857cb6afa1dbea8974f3 Mon Sep 17 00:00:00 2001 From: Sophia Atkinson Date: Tue, 16 Jul 2024 01:14:40 -0700 Subject: [PATCH] patch errors --- inc/customizer/mt-customizer-general-panel-options.php | 2 +- inc/customizer/mt-customizer.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/inc/customizer/mt-customizer-general-panel-options.php b/inc/customizer/mt-customizer-general-panel-options.php index f7adbd0..3d95aa3 100644 --- a/inc/customizer/mt-customizer-general-panel-options.php +++ b/inc/customizer/mt-customizer-general-panel-options.php @@ -49,7 +49,7 @@ function sophia_after_dark_customize_general_panels_sections_register( $wp_custo ) ) ); - $wp_customize->add_control(new Sophia_After_Dark_Image_control( + $wp_customize->add_control(new WP_Customize_Image_control( $wp_customize, 'sophia_after_dark_home_og_image', array( 'label' => __('Home Page Open Graph Image', 'sophia_after_dark'), 'section' => 'sophia_after_dark_section_site', diff --git a/inc/customizer/mt-customizer.php b/inc/customizer/mt-customizer.php index e95799d..561645a 100644 --- a/inc/customizer/mt-customizer.php +++ b/inc/customizer/mt-customizer.php @@ -25,8 +25,6 @@ function sophia_after_dark_customize_register( $wp_customize ) { $wp_customize->get_section( 'header_image' )->description = __( 'Header Image for only Innerpages', 'sophia-after-dark' ); $wp_customize->add_setting('sophia_after_dark_home_og_image', array('default' => '','sanitize_callback' => 'esc_url_raw','type' => 'option',)); $wp_customize->add_setting('sophia_after_dark_home_og_user', array('default' => 1,'sanitize_callback' => 'absint','type' => 'option',)); - $wp_customize->add_setting('sophia_after_dark_mastodon', array('default' => 1,'sanitize_callback' => 'absint','type' => 'option',)); - if ( isset( $wp_customize->selective_refresh ) ) { $wp_customize->selective_refresh->add_partial( 'blogname', array( 'selector' => '.site-title a',