Merge pull request #26515 from koko-ng/patch-1
Fix error message in wc_get_template
This commit is contained in:
commit
1de6bf0c28
|
@ -314,7 +314,7 @@ function wc_get_template( $template_name, $args = array(), $template_path = '',
|
|||
if ( $filter_template !== $template ) {
|
||||
if ( ! file_exists( $filter_template ) ) {
|
||||
/* translators: %s template */
|
||||
wc_doing_it_wrong( __FUNCTION__, sprintf( __( '%s does not exist.', 'woocommerce' ), '<code>' . $template . '</code>' ), '2.1' );
|
||||
wc_doing_it_wrong( __FUNCTION__, sprintf( __( '%s does not exist.', 'woocommerce' ), '<code>' . $filter_template . '</code>' ), '2.1' );
|
||||
return;
|
||||
}
|
||||
$template = $filter_template;
|
||||
|
|
Loading…
Reference in New Issue