Arashtad
Forum Replies Created
-
Forum: Plugins
In reply to: [License Manager for WooCommerce] Security issueThe bug is back.
Your update after my message solved the problem. But, it seems in the newer versions it’s forgotten to be implemented. It would be great if you add this fix to the main branch of your development version to make sure the future updates are equipped with it.
Just add:
if($license != null)to /wp-content/plugins/license-manager-for-woocommerce/includes/Integrations/WooCommerce/MyAccount.php at line 238 like:
if($license != null) { $decrypted = $license->getDecryptedLicenseKey(); if ( is_wp_error( $decrypted ) ) { echo sprintf( '<p>%s</p>', $decrypted->get_error_message() ); return; } echo wc_get_template_html( 'myaccount/single.php', array( 'license' => $license, 'license_key' => $license->getDecryptedLicenseKey(), 'product' => ! empty( $license->getProductId() ) ? wc_get_product( $license->getProductId() ) : null, 'order' => ! empty( $license->getOrderId() ) ? wc_get_order( $license->getOrderId() ) : null, 'date_format' => get_option( 'date_format' ), ), '', LMFWC_TEMPLATES_DIR ); } else { echo sprintf( '<h3>%s</h3>', __( 'Not found', 'license-manager-for-woocommerce' ) ); echo sprintf( '<p>%s</p>', __( 'The license you are looking for is not found.', 'license-manager-for-woocommerce' ) ); }
And that’s it!
Thank youForum: Plugins
In reply to: [License Manager for WooCommerce] Security issueThank you for the prompt action and great support. I checked the code and found the modification exactly as expected.
We’ve had a lot of customization done on this powerful plugin using the methods provided in your documentation, template override, etc. But, this one was an already defined function and there was no standard way to modify it unless you do it. Because, our changes would be erased by each update and I’m not a fan of copying and locking others’ plugins; and you did it way quicker and cleaner than what I was expecting.
Thank you and your technical team.- This reply was modified 10 months ago by Arashtad.
Forum: Everything else WordPress
In reply to: My plugins doesn’t show up on my www.remarpro.com profileWorked as expected.
Thank you very much Andrew.