Deprecated Calls
-
Hi
I have checked version 1.1 of the plug-in with Woocommerce 3.0.5 and I can see some deprecated calls.Incorrect Use of id() Used in wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-product.php on line 72. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_dgwt_wcas_result_details'), WP_Hook->do_action, WP_Hook->apply_filters, DGWT_WCAS_Result_Details->get_result_details, DGWT_WCAS_Result_Details->get_taxonomy_details, include('/plugins/ajax-search-for-woocommerce/includes/tmpl/single-product-tax.php'), WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong This message was added in version 3.0.
Looks like this line in the single-product-tax.php
<a class="dgwt-wcas-tax-product-details" href="<?php echo esc_url( get_permalink( $product->id ) ); ?>" title="<?php echo esc_attr( $product->get_title() ); ?>">
should looks like
<a class="dgwt-wcas-tax-product-details" href="<?php echo esc_url( get_permalink( $product->get_id ()) ); ?>" title="<?php echo esc_attr( $product->get_title() ); ?>">
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Deprecated Calls’ is closed to new replies.