• Olá pessoal após instalar o tema ao iniciar a a personaliza??o me deparo com este erro.
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function wp_kses(), 1 passed in C:\xampp\htdocs\sxshop\wp-content\themes\WCM010020\inc\customizer.php on line 35 and at least 2 expected in C:\xampp\htdocs\sxshop\wp-includes\kses.php:752 Stack trace: #0 C:\xampp\htdocs\sxshop\wp-content\themes\WCM010020\inc\customizer.php(35): wp_kses('Use a <a href="...') #1 C:\xampp\htdocs\sxshop\wp-includes\class-wp-hook.php(303): templatemela_customize_register(Object(WP_Customize_Manager)) #2 C:\xampp\htdocs\sxshop\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #3 C:\xampp\htdocs\sxshop\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #4 C:\xampp\htdocs\sxshop\wp-includes\class-wp-customize-manager.php(933): do_action('customize_regis...', Object(WP_Customize_Manager)) #5 C:\xampp\htdocs\sxshop\wp-includes\class-wp-hook.php(303): WP_Customize_Manager->wp_loaded('') #6 C:\xampp\htdocs\sxshop\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #7 C:\xampp\htdocs\sxshop\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #8 C:\xampp\htdocs\sxshop\wp-settings.php(600): do_action('wp_loaded') #9 C:\xampp\htdocs\sxshop\wp-config.php(95): require_once('C:\\xampp\\htdocs...') #10 C:\xampp\htdocs\sxshop\wp-load.php(50): require_once('C:\\xampp\\htdocs...') #11 C:\xampp\htdocs\sxshop\wp-admin\admin.php(34): require_once('C:\\xampp\\htdocs...') #12 C:\xampp\htdocs\sxshop\wp-admin\customize.php(13): require_once('C:\\xampp\\htdocs...') #13 {main} thrown in C:\xampp\htdocs\sxshop\wp-includes\kses.php on line 752

    abrir o arquivo customizer.php na linha 33a37 tenho isso

    $wp_customize->add_section( 'featured_content', array(
    		'title'       => esc_html__( 'Featured Content', 'branchy' ),
    		'description' => sprintf( wp_kses( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'branchy' )), admin_url( '/edit.php?tag=featured' ), admin_url( '/edit.php?show_sticky=1' ) ),
    		'priority'    => 130,
    	) );

    no arquivo kess.php linha752 tenho isso

    function wp_kses( $string, $allowed_html, $allowed_protocols = array() ) {
    	if ( empty( $allowed_protocols ) ) {
    		$allowed_protocols = wp_allowed_protocols();
    	}
    
    	$string = wp_kses_no_null( $string, array( 'slash_zero' => 'keep' ) );
    	$string = wp_kses_normalize_entities( $string );
    	$string = wp_kses_hook( $string, $allowed_html, $allowed_protocols );
    
    	return wp_kses_split( $string, $allowed_html, $allowed_protocols );

    como posso resolver isso? grato pela aten??o.

Viewing 1 replies (of 1 total)
  • Thread Starter andersonrios19

    (@andersonrios19)

    Resolvi parcialmente, apaguei isso e funcionou normal,

    $wp_customize->add_section( 'featured_content', array(
    		'title'       => esc_html__( 'Featured Content', 'branchy' ),
    		'description' => sprintf( wp_kses( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'branchy' )), admin_url( '/edit.php?tag=featured' ), admin_url( '/edit.php?show_sticky=1' ) ),
    		'priority'    => 130,
    	) );
Viewing 1 replies (of 1 total)
  • The topic ‘Ajudem-me erro wp-includes\kses.php on line 752’ is closed to new replies.