get_categories returns string Closes #3720

This commit is contained in:
Mike Jolley 2013-09-04 14:57:07 +01:00
parent 02af8a00a5
commit ffa53754ac
1 changed files with 1 additions and 1 deletions

View File

@ -959,7 +959,7 @@ class WC_Product {
* @param mixed '
* @param string $before (default: '')
* @param string $after (default: '')
* @return array
* @return string
*/
public function get_categories( $sep = ', ', $before = '', $after = '' ) {
return get_the_term_list( $this->id, 'product_cat', $before, $sep, $after );