• PLUGIN: wp-e-commerce
    VERSION: since forever

    PROBLEM: The code bellow (“find(..)”) returns object and so always evaluates to true – so always inserts asterix..

    FILE:     wp-e-commerce/wpsc-core/js/wp-e-commerce.js
    LINE:     883
    CHANGE:	  if ( label_element.find('.asterix') ) {
    		label = label + '<span class="asterix">*</span>';
    TO:       if ( label_element.find('.asterix').length ) {

    https://wordpress.org/plugins/wp-e-commerce/

The topic ‘JS code incorrectly marks fields as required’ is closed to new replies.