Merge pull request #5170 from mgmartel/order-comments-caps

Remove comment exclusion in order notes meta box
This commit is contained in:
Mike Jolley 2014-03-19 10:57:07 +00:00
commit f09063b1fd
1 changed files with 4 additions and 0 deletions

View File

@ -27,8 +27,12 @@ class WC_Meta_Box_Order_Notes {
'type' => 'order_note'
);
remove_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 );
$notes = get_comments( $args );
add_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 );
echo '<ul class="order_notes">';
if ( $notes ) {