Missing space and incorrect comment

This commit is contained in:
Mike Jolley 2016-11-25 10:43:56 +00:00
parent 8d30e1d044
commit 1a632cda1f
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ class WC_Product_Variation_Data_Store_CPT extends WC_Product_Data_Store_CPT impl
public function update( &$product ) {
$post_data = array(
'ID' => $product->get_id(),
'post_title' => get_the_title( $product->get_parent_id() ) . ' –' . wc_get_formatted_variation( $product, true, false ),
'post_title' => get_the_title( $product->get_parent_id() ) . ' – ' . wc_get_formatted_variation( $product, true, false ),
'post_parent' => $product->get_parent_id(),
'comment_status' => 'closed',
'post_status' => $product->get_status() ? $product->get_status() : 'publish',

View File

@ -323,7 +323,7 @@ function wc_placeholder_img( $size = 'shop_thumbnail' ) {
*
* Gets a formatted version of variation data or item meta.
*
* @param string $variation
* @param array|WC_Product_Variation $variation
* @param bool $flat (default: false)
* @param bool $include_names include attribute names/labels
* @return string