Skip to content

Commit

Permalink
FIX: documentation search
Browse files Browse the repository at this point in the history
  • Loading branch information
MjHead committed Aug 21, 2017
1 parent 2d19559 commit 90e3626
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions includes/handlers/class-wapu-core-docs-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __construct( $args = array() ) {
$this->args = wp_parse_args( $args, $this->args );

$this->sanitize_cb = array(
'http:\/\/documentation\.[a-z]*\.com\/[a-zA-Z-_]*\/index\.php\?project=' => array( $this, 'sanitize_old_wp' ),
'http:\/\/documentation\.[a-z]*\.com\/[a-zA-Z-_\/]*index\.php\?project=' => array( $this, 'sanitize_old_wp' ),
);
}

Expand All @@ -81,14 +81,13 @@ public function __construct( $args = array() ) {
public function run( $query ) {

$query = trim( $query );
$query = $this->sanitize_query( $query );
$stored = $this->try_get_stored_result( $query );

if ( ! empty( $stored ) ) {
return $stored;
}

$query = $this->sanitize_query( $query );

if ( 0 < intval( $query ) ) {
$result = $this->search_by_template_id( $query );
} else {
Expand Down
4 changes: 2 additions & 2 deletions wapu-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Wapuu Core
* Plugin URI: http://www.cherryframework.com/plugins/
* Description: Core for jetimpex.com.
* Version: 1.1.0
* Version: 1.1.1
* Author: JetImpex
* Author URI: http://cherryframework.com/
* Text Domain: wapu-core
Expand Down Expand Up @@ -63,7 +63,7 @@ class Wapu_Core {
*
* @var string
*/
private $version = '1.1.0';
private $version = '1.1.1';

/**
* Core page trigger
Expand Down

0 comments on commit 90e3626

Please sign in to comment.