• Resolved Ov3rfly

    (@ov3rfly)


    There are missing space characters between data-xxx attributes in legacy widget html output in file class-jcl-legacy-widget.php at line 130.

    Current code:

    foreach ( $required_vals as $val ) {
    $data_attrs .= sprintf( 'data-%s="%s"', esc_attr( $val ), esc_attr( $this->config[ $val ] ) );
    }

    if ( $this->config['parent_expand'] ) {
    $data_attrs .= sprintf( 'data-parent_expand="%s"', esc_attr( $this->config['parent_expand'] ) );
    }

    Suggested fix:

    foreach ( $required_vals as $val ) {
    $data_attrs .= sprintf( ' data-%s="%s"', esc_attr( $val ), esc_attr( $this->config[ $val ] ) );
    }

    if ( $this->config['parent_expand'] ) {
    $data_attrs .= sprintf( ' data-parent_expand="%s"', esc_attr( $this->config['parent_expand'] ) );
    }

    JS Categories List Widget 4.0.2

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.