Changeset 1332631
- Timestamp:
- 01/21/2016 07:45:04 AM (10 years ago)
- Location:
- wp-nice-search/trunk/src/core/Results/ResultCase
- Files:
-
- 4 edited
-
DefaultResult.php (modified) (1 diff)
-
FullResult.php (modified) (1 diff)
-
ImageResult.php (modified) (1 diff)
-
MetaResult.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-nice-search/trunk/src/core/Results/ResultCase/DefaultResult.php
r1315492 r1332631 33 33 $lists .= '</' . $list_style['heading_tag'] .'>'; 34 34 $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 } 36 39 $lists .= '<ul class="list-results">'; 37 40 foreach ($post_ids as $id) { -
wp-nice-search/trunk/src/core/Results/ResultCase/FullResult.php
r1317086 r1332631 36 36 $post_ids = $this->getPosts(); 37 37 38 if (empty($post_ids)) return $lists; 38 if (empty($post_ids)) { 39 $lists .= '<p>No results are found.</p>'; 40 return $lists; 41 } 39 42 40 43 $lists .= '<ul class="list-results fulllist">'; -
wp-nice-search/trunk/src/core/Results/ResultCase/ImageResult.php
r1317086 r1332631 32 32 $lists .= '</' . $list_style['heading_tag'] .'>'; 33 33 $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 } 35 38 $lists .= '<ul class="list-results imagelist">'; 36 39 foreach ($post_ids as $id) { -
wp-nice-search/trunk/src/core/Results/ResultCase/MetaResult.php
r1317086 r1332631 36 36 $post_ids = $this->getPosts(); 37 37 38 if (empty($post_ids)) return $lists; 38 if (empty($post_ids)) { 39 $lists .= '<p>No results are found.</p>'; 40 return $lists; 41 } 39 42 40 43 $lists .= '<ul class="list-results metalist">';
Note: See TracChangeset
for help on using the changeset viewer.