Skip to content
New issue

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

WC: fix attribute edit page hidden fields #1161

Merged
merged 4 commits into from
May 7, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/slugs/includes/qtranslate-slug-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ function qts_hide_term_slug_box() {
break;
case 'edit.php':
// Handle WooCommerce edit product attributes page.
if ( isset( $_GET['page'] ) && $_GET['page'] == 'product_attributes' ) {
if ( isset( $_GET['page'] ) && $_GET['page'] == 'product_attributes' && ! isset( $_GET['edit'] ) ) {
$id = 'attribute_name';
// TODO: actual slug column to be added (javascript seems the only way currently). For the time being, possibly overridden slugs column is hidden.
$additional_jquery =
Expand Down
2 changes: 1 addition & 1 deletion modules/woo-commerce/qwc-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function qtranxf_wc_add_filters_admin() {
foreach ( $email_common as $name => $priority ) {
add_filter( $name, 'qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage', $priority );
}

add_filter( 'woocommerce_attribute_taxonomies' , 'qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage' );
add_filter( 'woocommerce_variation_option_name' , 'qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage' );
}
Expand Down