pointless else clause

This commit is contained in:
Mike Jolley 2014-11-19 22:42:03 +00:00
parent e630e64cb7
commit fe6796cf30
1 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,8 @@ final class WooCommerce {
if ( method_exists( $this, $key ) ) {
return $this->$key();
}
else switch( $key ) {
switch( $key ) {
case 'template_url':
_deprecated_argument( 'Woocommerce->template_url', '2.1', 'Use WC()->template_path()' );
return $this->template_path();