We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function wc1c_manage_taxonomy_custom_column($columns, $column, $id) { if ($column == 'wc1c_guid') { $guid = get_woocommerce_term_meta($id, 'wc1c_guid'); list($taxonomy, $guid) = explode('::', $guid); $columns .= $guid ? "<small>$guid</small>" : '<span class="na">–</span>'; } return $columns; }
Ошибка на list($taxonomy, $guid) = explode('::', $guid) при пустом guid. Проявляется при включенной отладке php.
list($taxonomy, $guid) = explode('::', $guid)
должно быть:
function wc1c_manage_taxonomy_custom_column($columns, $column, $id) { if ($column == 'wc1c_guid') { $guid = get_woocommerce_term_meta($id, 'wc1c_guid'); if ($guid) { list($taxonomy, $guid) = explode('::', $guid); $columns .= "<small>$guid</small>"; } else { $columns .= '<span class="na">–</span>'; } } return $columns; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Ошибка на
list($taxonomy, $guid) = explode('::', $guid)
при пустом guid.Проявляется при включенной отладке php.
должно быть:
The text was updated successfully, but these errors were encountered: