Dashboard and Reports support for ML plugins, I
This commit is contained in:
parent
e6827e6d45
commit
c5f18141d4
|
@ -275,7 +275,7 @@ function woocommerce_dashboard_recent_reviews() {
|
|||
echo '<div class="star-rating" title="'.$rating.'">
|
||||
<span style="width:'.($rating*10).'px">'.$rating.' '.__('out of 5', 'woocommerce').'</span></div>';
|
||||
|
||||
echo '<h4 class="meta"><a href="'.get_permalink($comment->ID).'#comment-'.$comment->comment_ID .'">'.$comment->post_title.'</a> reviewed by ' .strip_tags($comment->comment_author) .'</h4>';
|
||||
echo '<h4 class="meta"><a href="'.get_permalink($comment->ID).'#comment-'.$comment->comment_ID .'">'. __( $comment->post_title ) .'</a> reviewed by ' .strip_tags($comment->comment_author) .'</h4>';
|
||||
echo '<blockquote>'.strip_tags($comment->comment_excerpt).' [...]</blockquote></li>';
|
||||
|
||||
endforeach;
|
||||
|
|
|
@ -1002,7 +1002,7 @@ function woocommerce_top_sellers() {
|
|||
|
||||
$product = get_post($product_id);
|
||||
if ($product) :
|
||||
$product_name = '<a href="'.get_permalink($product->ID).'">'.$product->post_title.'</a>';
|
||||
$product_name = '<a href="'.get_permalink($product->ID).'">'. __( $product->post_title ) .'</a>';
|
||||
$orders_link = admin_url('edit.php?s&post_status=all&post_type=shop_order&action=-1&s=' . urlencode($product->post_title) . '&shop_order_status=completed,processing,on-hold');
|
||||
else :
|
||||
$product_name = __('Product does not exist', 'woocommerce');
|
||||
|
@ -1102,7 +1102,7 @@ function woocommerce_top_earners() {
|
|||
|
||||
$product = get_post($product_id);
|
||||
if ($product) :
|
||||
$product_name = '<a href="'.get_permalink($product->ID).'">'.$product->post_title.'</a>';
|
||||
$product_name = '<a href="'.get_permalink($product->ID).'">'. __( $product->post_title ) .'</a>';
|
||||
$orders_link = admin_url('edit.php?s&post_status=all&post_type=shop_order&action=-1&s=' . urlencode($product->post_title) . '&shop_order_status=completed,processing,on-hold');
|
||||
else :
|
||||
$product_name = __('Product no longer exists', 'woocommerce');
|
||||
|
@ -1580,7 +1580,7 @@ function woocommerce_stock_overview() {
|
|||
|
||||
if ( $stock <= $nostockamount ) continue;
|
||||
|
||||
$title = $product->post_title;
|
||||
$title = __( $product->post_title );
|
||||
|
||||
if ( $sku )
|
||||
$title .= ' (' . __('SKU', 'woocommerce') . ': ' . $sku . ')';
|
||||
|
@ -1615,7 +1615,7 @@ function woocommerce_stock_overview() {
|
|||
|
||||
if ( $stock > $nostockamount ) continue;
|
||||
|
||||
$title = $product->post_title;
|
||||
$title = __( $product->post_title );
|
||||
|
||||
if ( $sku )
|
||||
$title .= ' (' . __('SKU', 'woocommerce') . ': ' . $sku . ')';
|
||||
|
|
Loading…
Reference in New Issue