Skip to content

Commit

Permalink
fix: show the sub-order in backend if it's in a search page (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonh3 authored and sabbir1991 committed Oct 11, 2018
1 parent 0c68078 commit f6f0bf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ function dokan_shop_order_custom_columns( $col ) {
function dokan_admin_shop_order_row_classes( $classes, $post_id ) {
global $post;

if ( is_search() ) {
return $classes;
}

if ( $post->post_type == 'shop_order' && $post->post_parent != 0 ) {
$classes[] = 'sub-order parent-' . $post->post_parent;
}
Expand Down

0 comments on commit f6f0bf0

Please sign in to comment.