Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 73026

Error in the customizer.php file

$
0
0

Replies: 0

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 to prof_2 otherwise it conflicts with the first skills option.

Regards,
Bob Kosse


Viewing all articles
Browse latest Browse all 73026

Trending Articles