Plugin Directory

Changeset 1332631


Ignore:
Timestamp:
01/21/2016 07:45:04 AM (10 years ago)
Author:
duyngha
Message:

update notification

Location:
wp-nice-search/trunk/src/core/Results/ResultCase
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-nice-search/trunk/src/core/Results/ResultCase/DefaultResult.php

    r1315492 r1332631  
    3333        $lists .= '</' . $list_style['heading_tag'] .'>';
    3434        $post_ids = parent::getPosts();
    35         if (empty($post_ids)) return;
     35        if (empty($post_ids)) {
     36            $lists .= '<p>No results are found.</p>';
     37            return $lists;
     38        }
    3639        $lists .= '<ul class="list-results">';
    3740        foreach ($post_ids as $id) {
  • wp-nice-search/trunk/src/core/Results/ResultCase/FullResult.php

    r1317086 r1332631  
    3636        $post_ids = $this->getPosts();
    3737
    38         if (empty($post_ids)) return $lists;
     38        if (empty($post_ids)) {
     39            $lists .= '<p>No results are found.</p>';
     40            return $lists;
     41        }
    3942
    4043        $lists .= '<ul class="list-results fulllist">';
  • wp-nice-search/trunk/src/core/Results/ResultCase/ImageResult.php

    r1317086 r1332631  
    3232        $lists .= '</' . $list_style['heading_tag'] .'>';
    3333        $post_ids = $this->getPosts();
    34         if (empty($post_ids)) return $lists;
     34        if (empty($post_ids)) {
     35            $lists .= '<p>No results are found.</p>';
     36            return $lists;
     37        }
    3538        $lists .= '<ul class="list-results imagelist">';
    3639        foreach ($post_ids as $id) {
  • wp-nice-search/trunk/src/core/Results/ResultCase/MetaResult.php

    r1317086 r1332631  
    3636        $post_ids = $this->getPosts();
    3737
    38         if (empty($post_ids)) return $lists;
     38        if (empty($post_ids)) {
     39            $lists .= '<p>No results are found.</p>';
     40            return $lists;
     41        }
    3942
    4043        $lists .= '<ul class="list-results metalist">';
Note: See TracChangeset for help on using the changeset viewer.