Skip to content

Commit

Permalink
FIX: documentation search
Browse files Browse the repository at this point in the history
  • Loading branch information
MjHead committed Nov 30, 2017
1 parent fa35743 commit 17b6088
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion 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[s]?:\/\/documentation\.[a-z]*\.com\/[a-zA-Z-_\/]*index\.php\?project=' => array( $this, 'sanitize_old_wp' ),
'http[s]?:\/\/documentation\.[a-z]*\.(com|io)\/[a-zA-Z-_\/]*index\.php\?project=' => array( $this, 'sanitize_old_wp' ),
);
}

Expand All @@ -84,6 +84,8 @@ public function run( $query ) {
$query = $this->sanitize_query( $query );
$stored = $this->try_get_stored_result( $query );

$stored = false;

if ( ! empty( $stored ) ) {
return $stored;
}
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.11
* Version: 1.1.12
* 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.11';
private $version = '1.1.12';

/**
* Core page trigger
Expand Down

0 comments on commit 17b6088

Please sign in to comment.