Action column displays text “Array” after 1.6.0
-
After updating to 1.6.0, we noticed that “action” column displays the text “Array” instead of add-to-cart button. I already found that it is caused by this code at wp-content/plugins/product-variant-table-for-woocommerce/inc/table-parts/content-tbody.php:354:
elseif( strtolower( $key2 ) == __("action", "product-variant-table-for-woocommerce") ){
It should actually say “Action”, starting from the upper case:
elseif( strtolower( $key2 ) == __("Action", "product-variant-table-for-woocommerce") ){
because it is assigned so at wp-content/plugins/product-variant-table-for-woocommerce/inc/table-parts/content-tbody.php:229
$key1_title = __('Action', 'product-variant-table-for-woocommerce');
This happens if the site’s locale is not English (Swedish in our case), so the string “Action” is getting translated but the string “action” not because there is no translation for it.
Could you please fix this? Thanks in advance!
- You must be logged in to reply to this topic.