WOOCOMMERCE_TEMPLATE_PATH not dir, closes #3831

This commit is contained in:
Mike Jolley 2013-09-25 08:07:51 +01:00
parent 479e4b5f89
commit fd86647420
1 changed files with 2 additions and 2 deletions

View File

@ -121,8 +121,8 @@ final class WooCommerce {
return $this->$key(); return $this->$key();
else switch( $key ) { else switch( $key ) {
case 'template_url': case 'template_url':
_deprecated_argument( 'Woocommerce->template_url', '2.1', 'WOOCOMMERCE_TEMPLATE_DIR constant' ); _deprecated_argument( 'Woocommerce->template_url', '2.1', 'WOOCOMMERCE_TEMPLATE_PATH constant' );
return WOOCOMMERCE_TEMPLATE_DIR; return WOOCOMMERCE_TEMPLATE_PATH;
case 'messages': case 'messages':
_deprecated_argument( 'Woocommerce->messages', '2.1', 'The "messages" field is moved to the messages helper class.' ); _deprecated_argument( 'Woocommerce->messages', '2.1', 'The "messages" field is moved to the messages helper class.' );
return $this->session->get( 'wc_messages', array() ); return $this->session->get( 'wc_messages', array() );