Missing space chars between data attributes in legacy widget
-
There are missing space characters between
data-xxxattributes in legacy widget html output in fileclass-jcl-legacy-widget.phpat 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.