Cherry Search - Version 1.1.1

Version Description

Fixed :

  • Fixed php error on search page.

=

Download this release

Release Info

Developer TemplateMonster 2002
Plugin Icon 128x128 Cherry Search
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1.0 to 1.1.1

cherry-framework/.gitignore ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #########################
2
+ # Files
3
+ #########################
4
+ .sass-cache
5
+ package.json
6
+
7
+ # Windows
8
+ Thumbs.db
9
+ Desktop.ini
10
+
11
+ # OSX
12
+ .DS_Store
13
+ *.swp
14
+ *~.nib
15
+
16
+ #########################
17
+ # Expansion
18
+ #########################
19
+ *.map
20
+ *.log
21
+ *.dll
22
+
23
+ #########################
24
+ # Folder
25
+ #########################
26
+ node_modules
27
+
28
+ #########################
29
+ # Travis-si files
30
+ #########################
cherry-framework/.jscsrc ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "preset": "wordpress",
3
+ "fileExtensions": [ ".js" ],
4
+ "excludeFiles": [
5
+ "**/*.min.js",
6
+ "modules/cherry-js-core/assets/js/cherry-js-core.js",
7
+ "modules/cherry-post-formats-api/assets/js/cherry-post-formats.js",
8
+ "modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/ui-checkbox.js",
9
+ "modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/ui-colorpicker.js",
10
+ "modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-media.js",
11
+ "modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/ui-radio.js",
12
+ "modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/select2.js",
13
+ "modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-select.js",
14
+ "modules/cherry-ui-elements/inc/ui-elements/ui-slider/assets/ui-slider.js",
15
+ "modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-stepper.js",
16
+ "modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-switcher.js",
17
+ "modules/cherry-ui-elements/inc/ui-elements/ui-collection/assets/js/jquery.collection.js",
18
+ "modules/cherry-ui-elements/inc/ui-elements/ui-collection/assets/js/ui-collection.js",
19
+ "modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/jquery-iconpicker.js",
20
+ "modules/cherry-interface-builder/inc/assets/cherry-interface-builder.js",
21
+ ]
22
+ }
cherry-framework/.jshintignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ **/*.min.js
2
+ modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/select2.js
3
+ modules/cherry-ui-elements/inc/ui-elements/ui-collection/assets/js/jquery.collection.js
4
+ modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/jquery-iconpicker.js
5
+
6
+ #Cherry Framework
7
+ modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-media.js
8
+ modules/cherry-js-core/assets/js/cherry-js-core.js
cherry-framework/.travis.yml ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Travis CI configuration file.
2
+ # @link https://travis-ci.org/
3
+
4
+ # For use with the Twenty Sixteen WordPress theme
5
+ # @link https://github.com/WordPress/twentysixteen/
6
+
7
+ # Declare project language and PHP versions to test against.
8
+ # @link http://about.travis-ci.org/docs/user/languages/php/
9
+ language: php
10
+
11
+ # Declare versions of PHP to use. Use one decimal max.
12
+ php:
13
+ - "5.6"
14
+ - "5.5"
15
+ - "5.4"
16
+ - "5.3"
17
+ # Current $required_php_version for WordPress: 5.2.4
18
+ - "5.2"
19
+
20
+ # Ditch sudo and use containers.
21
+ # @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F
22
+ # @link http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure
23
+ sudo: false
24
+
25
+ # Declare which versions of WordPress to test against.
26
+ # Also declare whether or not to test in Multisite.
27
+ env:
28
+ # Trunk (current version in development is 4.4)
29
+ # @link https://github.com/WordPress/WordPress
30
+ - WP_VERSION=master WP_MULTISITE=0
31
+
32
+ # Use this to prepare your build for testing.
33
+ # e.g. copy database configurations, environment variables, etc.
34
+ # Failures in this section will result in build status 'errored'.
35
+ before_script:
36
+ # Set up WordPress installation.
37
+ - export WP_DEVELOP_DIR=/tmp/wordpress/
38
+ - mkdir -p $WP_DEVELOP_DIR
39
+ # Use the Git mirror of WordPress.
40
+ - git clone --depth=1 --branch="$WP_VERSION" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR
41
+ # Set up Twenty Sixteen theme information.
42
+ - theme_slug=$(basename $(pwd))
43
+ - theme_dir=$WP_DEVELOP_DIR/src/wp-content/themes/$theme_slug
44
+ - cd ..
45
+ - mv $theme_slug $theme_dir
46
+ # Set up WordPress configuration.
47
+ - cd $WP_DEVELOP_DIR
48
+ - echo $WP_DEVELOP_DIR
49
+ - cp wp-tests-config-sample.php wp-tests-config.php
50
+ - sed -i "s/youremptytestdbnamehere/wordpress_test/" wp-tests-config.php
51
+ - sed -i "s/yourusernamehere/root/" wp-tests-config.php
52
+ - sed -i "s/yourpasswordhere//" wp-tests-config.php
53
+ # Create WordPress database.
54
+ - mysql -e 'CREATE DATABASE wordpress_test;' -uroot
55
+ # Install CodeSniffer for WordPress Coding Standards checks.
56
+ - mkdir php-codesniffer && curl -L https://github.com/squizlabs/PHP_CodeSniffer/archive/master.tar.gz | tar xz --strip-components=1 -C php-codesniffer
57
+ # Install WordPress Coding Standards.
58
+ - mkdir wordpress-coding-standards && curl -L https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/archive/master.tar.gz | tar xz --strip-components=1 -C wordpress-coding-standards
59
+ # Hop into CodeSniffer directory.
60
+ - cd php-codesniffer
61
+ # Set install path for WordPress Coding Standards
62
+ # @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941
63
+ - scripts/phpcs --config-set installed_paths ../wordpress-coding-standards
64
+ # Hop into themes directory.
65
+ - cd $theme_dir
66
+ # After CodeSniffer install you should refresh your path.
67
+ - phpenv rehash
68
+ # Install JSCS: JavaScript Code Style checker
69
+ # @link http://jscs.info/
70
+ - npm install -g jscs
71
+ # Install JSHint, a JavaScript Code Quality Tool
72
+ # @link http://jshint.com/docs/
73
+ - npm install -g jshint
74
+ - wget https://develop.svn.wordpress.org/trunk/.jshintrc
75
+
76
+ # Run test script commands.
77
+ # Default is specific to project language.
78
+ # All commands must exit with code 0 on success. Anything else is considered failure.
79
+ script:
80
+ # Search theme for PHP syntax errors.
81
+ - find . \( -name '*.php' \) -exec php -lf {} \;
82
+ # Run the theme through JSHint
83
+ - jshint .
84
+ # Run the theme through JavaScript Code Style checker
85
+ - jscs .
86
+ # WordPress Coding Standards
87
+ # @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
88
+ # @link http://pear.php.net/package/PHP_CodeSniffer/
89
+ # -p flag: Show progress of the run.
90
+ # -s flag: Show sniff codes in all reports.
91
+ # -v flag: Print verbose output.
92
+ # -n flag: Do not print warnings (shortcut for --warning-severity=0)
93
+ # --standard: Use WordPress as the standard.
94
+ # --extensions: Only sniff PHP files.
95
+ - $WP_DEVELOP_DIR/php-codesniffer/scripts/phpcs -p -s -v -n . --standard=./codesniffer.ruleset.xml --extensions=php
cherry-framework/codesniffer.ruleset.xml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <ruleset name="WordPress Theme Coding Standards">
3
+ <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
4
+ <!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
5
+
6
+ <!-- Set a description for this ruleset. -->
7
+ <description>A custom set of code standard rules to check for WordPress themes.</description>
8
+
9
+ <!-- Include the WordPress ruleset, with space for exclusions if necessary. -->
10
+ <rule ref="WordPress-Core">
11
+ <exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
12
+ <exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
13
+
14
+ <exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
15
+
16
+ <exclude name="Squiz.Commenting.FileComment.SpacingAfterComment" />
17
+ <exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
18
+ <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
19
+ <exclude name="Squiz.Commenting.InlineComment.NotCapital" />
20
+ </rule>
21
+ <rule ref="WordPress-Docs">
22
+
23
+ </rule>
24
+ </ruleset>
cherry-framework/config.json ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name" : "Cherry Framework",
3
+ "version" : "1.4.1",
4
+ "description" : "",
5
+ "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs",
6
+ "git_link" : "https://github.com/CherryFramework/cherry-framework",
7
+ "modules" : {
8
+ "cherry-breadcrumbs" : {
9
+ "name" : "Breadcrumb Trail",
10
+ "description" : "A breadcrumb menu script for WordPress.",
11
+ "version" : "1.1.3",
12
+ "doc_link" : "",
13
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-breadcrumbs",
14
+ "compatible" : ["theme", "plugin"],
15
+ "wordpress_org" : true,
16
+ "required" : false,
17
+ "dependencies" : []
18
+ },
19
+ "cherry-customizer" : {
20
+ "name" : "Customizer API",
21
+ "description" : "Customizer functionality.",
22
+ "version" : "1.1.6",
23
+ "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/01.%20cherry-customizer.md",
24
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-customizer",
25
+ "compatible" : ["theme", "plugin"],
26
+ "wordpress_org" : true,
27
+ "required" : false,
28
+ "dependencies" : []
29
+ },
30
+ "cherry-db-updater" : {
31
+ "name" : "Database Updater",
32
+ "description" : "Handle database updates if required.",
33
+ "version" : "1.0.0",
34
+ "doc_link" : "",
35
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-db-updater",
36
+ "compatible" : ["theme", "plugin"],
37
+ "wordpress_org" : true,
38
+ "required" : false,
39
+ "dependencies" : []
40
+ },
41
+ "cherry-dynamic-css" : {
42
+ "name" : "Dynamic CSS",
43
+ "description" : "Generate CSS.",
44
+ "version" : "1.4.0",
45
+ "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/03.%20cherry-dynamic-css.md",
46
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-dynamic-css",
47
+ "compatible" : ["theme", "plugin"],
48
+ "wordpress_org" : true,
49
+ "required" : false,
50
+ "dependencies" : []
51
+ },
52
+ "cherry-google-fonts-loader" : {
53
+ "name" : "Google Fonts Loader",
54
+ "description" : "Enqueue Google fonts.",
55
+ "version" : "1.1.0",
56
+ "doc_link" : "",
57
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-google-fonts-loader",
58
+ "compatible" : ["theme", "plugin"],
59
+ "wordpress_org" : true,
60
+ "required" : false,
61
+ "dependencies" : []
62
+ },
63
+ "cherry-handler" : {
64
+ "name" : "Cherry handler",
65
+ "description" : "Initialize handlers.",
66
+ "version" : "1.1.2",
67
+ "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/02.%20cherry-handler.md",
68
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-handler",
69
+ "compatible" : ["theme", "plugin"],
70
+ "wordpress_org" : true,
71
+ "required" : false,
72
+ "dependencies" : [ "cherry-js-core" ]
73
+ },
74
+ "cherry-interface-builder" : {
75
+ "name" : "Interface Builder",
76
+ "description" : "The module for the creation of interfaces in the WordPress admin panel.",
77
+ "version" : "1.1.2",
78
+ "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/07.%20cherry-interface-builder.md",
79
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-interface-builder",
80
+ "compatible" : ["theme", "plugin"],
81
+ "wordpress_org" : true,
82
+ "required" : false,
83
+ "dependencies" : [ "cherry-ui-elements" ]
84
+ },
85
+ "cherry-js-core" : {
86
+ "name" : "JS Core",
87
+ "description" : "Initialize global JS object which provides additional plugin functionality.",
88
+ "version" : "1.1.2",
89
+ "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/04.%20cherry-js-core.md",
90
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-js-core",
91
+ "compatible" : ["theme", "plugin"],
92
+ "wordpress_org" : true,
93
+ "required" : false,
94
+ "dependencies" : []
95
+ },
96
+ "cherry-post-formats-api" : {
97
+ "name" : "Post Formats API",
98
+ "description" : "API for post formats specific content.",
99
+ "version" : "1.1.2",
100
+ "doc_link" : "",
101
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-post-formats-api",
102
+ "compatible" : ["theme", "plugin"],
103
+ "wordpress_org" : true,
104
+ "required" : false,
105
+ "dependencies" : [ "cherry-js-core" ]
106
+ },
107
+ "cherry-post-meta" : {
108
+ "name" : "Post Meta",
109
+ "description" : "Manage post meta.",
110
+ "version" : "1.2.1",
111
+ "doc_link" : "",
112
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-post-meta",
113
+ "compatible" : ["theme", "plugin"],
114
+ "wordpress_org" : true,
115
+ "required" : false,
116
+ "dependencies" : [ "cherry-interface-builder" ]
117
+ },
118
+ "cherry-template-manager" : {
119
+ "name" : "Template Manager",
120
+ "description" : "Module for load and parse *.tmpl files.",
121
+ "version" : "1.0.2",
122
+ "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/05.%20cherry-template-manager.md",
123
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-template-manager",
124
+ "compatible" : ["theme", "plugin"],
125
+ "wordpress_org" : true,
126
+ "required" : false,
127
+ "dependencies" : []
128
+ },
129
+ "cherry-term-meta" : {
130
+ "name" : "Term Meta",
131
+ "description" : "Manage term metadata.",
132
+ "version" : "1.1.4",
133
+ "doc_link" : "",
134
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-term-meta",
135
+ "compatible" : ["theme", "plugin"],
136
+ "wordpress_org" : true,
137
+ "required" : false,
138
+ "dependencies" : [ "cherry-ui-elements" ]
139
+ },
140
+ "cherry-toolkit": {
141
+ "name": "Framework Toolkit",
142
+ "description": "Framework Toolkit contains various PHP utilities",
143
+ "version" : "1.2.0",
144
+ "doc_link": "https://github.com/CherryFramework/cherry-framework-docs/blob/master/100.%20cherry-toolkit.md",
145
+ "git_link": "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-toolkit",
146
+ "compatible": ["theme", "plugin"],
147
+ "wordpress_org": true,
148
+ "required": true,
149
+ "dependencies": []
150
+ },
151
+ "cherry-ui-elements" : {
152
+ "name" : "UI Elements",
153
+ "description" : "UI Elements",
154
+ "version" : "1.4.0",
155
+ "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/09.%20cherry-ui-elements.md",
156
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-ui-elements",
157
+ "compatible" : ["theme", "plugin"],
158
+ "wordpress_org" : true,
159
+ "required" : false,
160
+ "dependencies" : [ "cherry-js-core" ]
161
+ },
162
+ "cherry-utility" : {
163
+ "name" : "Utility",
164
+ "description" : "Multiple utility functions.",
165
+ "version" : "1.1.6",
166
+ "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/08.%20cherry-utility.md",
167
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-utility",
168
+ "compatible" : ["theme", "plugin"],
169
+ "wordpress_org" : true,
170
+ "required" : false,
171
+ "dependencies" : []
172
+ },
173
+ "cherry-widget-factory" : {
174
+ "name" : "Widget Factory",
175
+ "description" : "Base widget class that simplifies creating of your own widgets.",
176
+ "version" : "1.2.1",
177
+ "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/06.%20cherry-widget-factory.md",
178
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-widget-factory",
179
+ "compatible" : ["theme", "plugin"],
180
+ "wordpress_org" : true,
181
+ "required" : false,
182
+ "dependencies" : [ "cherry-ui-elements" ]
183
+ },
184
+ "cherry5-insert-shortcode" : {
185
+ "name" : "Insert Shortcode",
186
+ "description" : "The module allows you to add shortcodes from editor tinyMCE.",
187
+ "version" : "1.0.1",
188
+ "doc_link" : "",
189
+ "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry5-insert-shortcode",
190
+ "compatible" : [ "plugin" ],
191
+ "wordpress_org" : true,
192
+ "required" : false,
193
+ "dependencies" : [ "cherry-ui-elements", "cherry-interface-builder" ]
194
+ }
195
+ }
196
+ }
cherry-search.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Cherry Search
4
  * Plugin URI: http://www.cherryframework.com/
5
  * Description: A plugin for WordPress.
6
- * Version: 1.1.0
7
  * Author: Cherry Team
8
  * Text Domain: cherry-search
9
  * License: GPL-3.0+
@@ -12,7 +12,7 @@
12
  *
13
  * @package Cherry_Search
14
  * @author Cherry Team
15
- * @version 1.1.0
16
  * @license GPL-3.0+
17
  * @copyright 2012-2016, Cherry Team
18
  */
@@ -63,7 +63,7 @@ if ( ! class_exists( 'Cherry_Search' ) ) {
63
  add_action( 'plugins_loaded', array( $this, 'lang' ), 1 );
64
 
65
  // Load the installer core.
66
- add_action( 'after_setup_theme', require( trailingslashit( __DIR__ ) . 'cherry-framework/setup.php' ), 0 );
67
 
68
  // Load the core functions/classes required by the rest of the plugin.
69
  add_action( 'after_setup_theme', array( $this, 'get_core' ), 1 );
@@ -92,7 +92,7 @@ if ( ! class_exists( 'Cherry_Search' ) ) {
92
  *
93
  * @since 1.0.0
94
  */
95
- define( 'CHERRY_SEARCH_VERSION', '1.1.0' );
96
 
97
  /**
98
  * Set the slug of the plugin.
3
  * Plugin Name: Cherry Search
4
  * Plugin URI: http://www.cherryframework.com/
5
  * Description: A plugin for WordPress.
6
+ * Version: 1.1.1
7
  * Author: Cherry Team
8
  * Text Domain: cherry-search
9
  * License: GPL-3.0+
12
  *
13
  * @package Cherry_Search
14
  * @author Cherry Team
15
+ * @version 1.1.1
16
  * @license GPL-3.0+
17
  * @copyright 2012-2016, Cherry Team
18
  */
63
  add_action( 'plugins_loaded', array( $this, 'lang' ), 1 );
64
 
65
  // Load the installer core.
66
+ add_action( 'after_setup_theme', require( trailingslashit( dirname( __FILE__ ) ) . 'cherry-framework/setup.php' ), 0 );
67
 
68
  // Load the core functions/classes required by the rest of the plugin.
69
  add_action( 'after_setup_theme', array( $this, 'get_core' ), 1 );
92
  *
93
  * @since 1.0.0
94
  */
95
+ define( 'CHERRY_SEARCH_VERSION', '1.1.1' );
96
 
97
  /**
98
  * Set the slug of the plugin.
includes/public/class-cherry-search-form-public.php CHANGED
@@ -108,8 +108,7 @@ if ( ! class_exists( 'Cherry_Search_Form_Public' ) ) {
108
  * @return void
109
  */
110
  public function set_search_query( $query ) {
111
-
112
- if ( ! is_admin() && $query->is_search ) {
113
  $form_settings = stripcslashes( $_GET['settings'] );
114
  $form_settings = json_decode( $form_settings );
115
  $form_settings = get_object_vars( $form_settings );
108
  * @return void
109
  */
110
  public function set_search_query( $query ) {
111
+ if ( ! is_admin() && $query->is_search && ! empty( $_GET['settings'] ) ) {
 
112
  $form_settings = stripcslashes( $_GET['settings'] );
113
  $form_settings = json_decode( $form_settings );
114
  $form_settings = get_object_vars( $form_settings );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: TemplateMonster 2002
3
  Tags: search, ajax search, quick search, fast search, ajax, cherry framework, widget search, shortcode search, custom search, cherry search
4
  Requires at least: 4.4
5
  Tested up to: 4.7.2
6
- Stable tag: 1.1.0
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -70,6 +70,12 @@ There are several ways to enable the plugin on your website. You can either:
70
 
71
  * WooCommerce issue in the product page.
72
 
 
 
 
 
 
 
73
  == Arbitrary section ==
74
 
75
  = Plugin Settings =
3
  Tags: search, ajax search, quick search, fast search, ajax, cherry framework, widget search, shortcode search, custom search, cherry search
4
  Requires at least: 4.4
5
  Tested up to: 4.7.2
6
+ Stable tag: 1.1.1
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
70
 
71
  * WooCommerce issue in the product page.
72
 
73
+ = 1.1.1 =
74
+
75
+ **Fixed :**
76
+
77
+ * Fixed php error on search page.
78
+
79
  == Arbitrary section ==
80
 
81
  = Plugin Settings =