Error in the customizer.php file
-
Hi There,
I noticed an error in the customizer.php file. In the skills section (line 148 – 152) the following content must be replaced:
//2 $wp_customize->add_setting( 'prof_2' , array('sanitize_callback' => 'myresume_sanitize_text','default' => __( 'WordPress', 'myresume' ) )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'prof_2', array( 'label' => __( 'Skill 2', 'myresume' ),'section' => 'prof-section','settings' => 'prof_1', ) ) );
with:
//2 $wp_customize->add_setting( 'prof_2' , array('sanitize_callback' => 'myresume_sanitize_text','default' => __( 'WordPress', 'myresume' ) )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'prof_2', array( 'label' => __( 'Skill 2', 'myresume' ),'section' => 'prof-section','settings' => 'prof_2', ) ) );
mention the settings parameter change from
prof_1
toprof_2
otherwise it conflicts with the first skills option.Regards,
Bob Kosse
- The topic ‘Error in the customizer.php file’ is closed to new replies.