Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/zipitup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build project
run: |
mkdir build

- name: Create artifact
uses: montudor/action-zip@v1
with:
args: zip -X -r build/${{ github.event.repository.name }}.zip . -x *.git* node_modules/\* .* "*/\.*" CODE_OF_CONDUCT.md CONTRIBUTING.md ISSUE_TEMPLATE.md PULL_REQUEST_TEMPLATE.md *.dist *.yml *.neon composer.* package.json dev-helpers** build** wporg-assets** phpunit**
args: zip -X -r build/${{ github.event.repository.name }}.zip . -x *.git* node_modules/\* .* "*/\.*" "*/.git*" "*/.DS_Store" CODE_OF_CONDUCT.md CONTRIBUTING.md ISSUE_TEMPLATE.md PULL_REQUEST_TEMPLATE.md *.dist *.yml *.neon composer.* package.json package-lock.json dev-helpers** build** wporg-assets** docs/\* phpunit** phpstan-bootstrap.php

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

# Lock files
package-lock.json
composer.lock
composer.lock
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
[![Required PHP](https://img.shields.io/wordpress/plugin/required-php/better-search?style=flat-square)](https://wordpress.org/plugins/better-search/)
[![Active installs](https://img.shields.io/wordpress/plugin/installs/better-search?style=flat-square)](https://wordpress.org/plugins/better-search/)

__Requires:__ 6.5
__Requires:__ 6.6

__Tested up to:__ 6.8
__Tested up to:__ 6.9

__License:__ [GPL-2.0+](https://www.gnu.org/licenses/gpl-2.0.html)

Expand Down
13 changes: 11 additions & 2 deletions better-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
* @author Ajay D'Souza
* @license GPL-2.0+
* @link https://webberzone.com
* @copyright 2009-2025 Ajay D'Souza
* @copyright 2009-2026 Ajay D'Souza
*
* @wordpress-plugin
* Plugin Name: Better Search
* Plugin URI: https://webberzone.com/plugins/better-search/
* Description: Replace the default WordPress search with a contextual search. Search results are sorted by relevancy ensuring a better visitor search experience.
* Version: 4.2.2-beta1
* Version: 4.2.2
* Author: WebberZone
* Author URI: https://webberzone.com/
* Text Domain: better-search
Expand Down Expand Up @@ -73,6 +73,15 @@
define( 'BETTER_SEARCH_DB_VERSION', '2.0' );
}

/**
* Holds the default thumbnail URL for Better Search.
*
* @since 4.2.2
*/
if ( ! defined( 'BETTER_SEARCH_DEFAULT_THUMBNAIL_URL' ) ) {
define( 'BETTER_SEARCH_DEFAULT_THUMBNAIL_URL', BETTER_SEARCH_PLUGIN_URL . 'includes/images/default-thumb.png' );
}

if ( ! function_exists( __NAMESPACE__ . '\bsearch_deactivate_other_instances' ) ) {
/**
* Deactivate other instances of Better Search when this plugin is activated.
Expand Down
Loading