Skip to content

Commit

Permalink
Remove deprecated function, as this is an internal class, we don't ne…
Browse files Browse the repository at this point in the history
…ed to support it
  • Loading branch information
Aljullu committed Apr 9, 2024
1 parent 68865f2 commit 0d8d960
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions plugins/woocommerce/src/Blocks/BlockTemplatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,19 +299,6 @@ function ( $template ) use ( $template_type ) {
return $query_result;
}

/**
* Gets the templates saved in the database.
*
* @param array $slugs An array of slugs to retrieve templates for.
* @param string $template_type wp_template or wp_template_part.
*
* @return int[]|\WP_Post[] An array of found templates.
*/
public function get_block_templates_from_db( $slugs = array(), $template_type = 'wp_template' ) {
wc_deprecated_function( 'BlockTemplatesController::get_block_templates_from_db()', '7.8', '\Automattic\WooCommerce\Blocks\Utils\BlockTemplateUtils::get_block_templates_from_db()' );
return BlockTemplateUtils::get_block_templates_from_db( $slugs, $template_type );
}

/**
* Gets the templates from the WooCommerce blocks directory, skipping those for which a template already exists
* in the theme directory.
Expand Down

0 comments on commit 0d8d960

Please sign in to comment.