Skip to content
This repository was archived by the owner on May 2, 2018. It is now read-only.

Commit e56a751

Browse files
committed
fix #27
1 parent bd5c76b commit e56a751

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

admin/assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@
7979
.metabox-holder .postbox.codeat.newsletter .mce-success-response,
8080
.metabox-holder .postbox.codeat.newsletter {
8181
color: #fff;
82-
}
82+
}

public/class-glossary.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ public static function get_instance() {
183183
public function filter_search( $query ) {
184184
if ( $query->is_search ) {
185185
//Mantain support for post
186-
$this->cpts[] = 'post';
187-
$query->set( 'post_type', $this->cpts );
186+
$cpts = $query->get( 'post_type' );
187+
$cpts[] = $this->cpts;
188+
$query->set( 'post_type', $cpts );
188189
}
189190
return $query;
190191
}

0 commit comments

Comments
 (0)