Skip to content

Commit

Permalink
Remove deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Jan 31, 2018
1 parent 5a4cc2d commit a8cc6c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions includes/wc-template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,7 @@ function woocommerce_maybe_show_product_subcategories( $loop_html ) {
* This is a legacy function which also checks if things should display.
* Themes no longer need to call these functions. It's all done via hooks.
*
* @deprecated 3.3.1
* @deprecated 3.3.1 @todo Add a notice in a future version.
* @param array $args Arguments.
* @return null|boolean
*/
Expand All @@ -1864,9 +1864,7 @@ function woocommerce_product_subcategories( $args = array() ) {
) );
return true;
} else {
// Output nothing. woocommerce_maybe_show_product_subcategories would have handled this already.
wc_deprecated_function( 'woocommerce_product_subcategories', '3.3', 'woocommerce_output_product_categories' );

// Output nothing. woocommerce_maybe_show_product_subcategories will handle the output of cats.
$display_type = woocommerce_get_loop_display_mode();

if ( 'subcategories' === $display_type ) {
Expand Down

0 comments on commit a8cc6c8

Please sign in to comment.