third party content, need to fix these errors? [Theme Check]

Hello,

[Theme Check] need to fix these errors?

Necessary to correct errors identified by the Theme Check caused by Buddypress?

As:

WARNING: Found a translation function that is missing a text-domain. Function _x , with the arguments ‘Add a comment’, 'buddypress’

WARNING: Found remove_filter( in the file themes/themename\buddypress\common\js-templates\messages\index.php . Themes should not remove core filters. Ensure this is a valid use case.

Line 75: remove_filter( ‘mce_buttons’, ‘bp_nouveau_messages_mce_buttons’, 10, 1 );

by Woocommerce

WARNING: Found echo ( $ in the file themes/themename\inc\woocommerce.php . Possible data validation issues found. All dynamic data must be correctly escaped for the context where it is rendered.

Line 227: <?php esc_html_e( 'SKU:', 'woocommerce' ); ?> <?php echo ( $sku = $product->get_sku() ) ? $sku : esc_html__( ‘N/A’, 'woocommerce

by wp-bootstrap-navwalker

WARNING: Found echo $ in the file themes/themename\inc\class-wp-bootstrap-navwalker.php . Possible data validation issues found. All dynamic data must be correctly escaped for the context where it is rendered.

Line 338: echo $fallback_output; // WPCS: XSS OK.

by BuddyPress Cover Image Plugin included in the theme

REQUIRED: Found base64_decode in the file themes/themename\inc\custom-buddypress\bp-cover-image.php . base64_decode() is not allowed.

Line 146: $data = base64_decode( $img );

REQUIRED: file_put_contents was found in the file themes/themename\inc\custom-buddypress\bp-cover-image.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

Line 155: $success = file_put_contents( $filepath, $data );

REQUIRED: image_resize() found in the file themes/themename\inc\custom-buddypress\bp-cover-image.php . Deprecated since version 3.5 . Use wp_get_image_editor() instead.

Line 494: $original_file = image_resize( $fileurl, 150, 150, true );

I’ve already tested my theme on several different servers, PHP and WordPress versions, and with plugins for compativilty and there have been no problems. Thank you for your attention!

1 Like