Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Unplugged-57 | Remove internal search option (#58)
Browse files Browse the repository at this point in the history
* Remove internal search option from wizard and form
  • Loading branch information
frobs authored Apr 26, 2023
1 parent 3fdc514 commit c8ff109
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 42 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
build
doofinder.zip
node_modules
html/
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ RUN apt-get update -qq && \
less \
nano

RUN mkdir -p /var/www/html/wp-content/plugins
RUN mkdir -p /var/www/html/wp-content/uploads
RUN mkdir -p /var/www/html/wp-content/upgrade
RUN chown -R www-data:www-data /var/www
RUN find /var/www/ -type d -exec chmod 0755 {} \;
RUN find /var/www/ -type f -exec chmod 644 {} \;

RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
chmod +x wp-cli.phar && \
mv wp-cli.phar /usr/local/bin/wpcli
Expand Down
15 changes: 4 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
version: '2'

networks:
front:
external:
name: front

services:
db:
image: mysql:5.7
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress

wp:
depends_on:
- db
build: .
volumes:
- ./doofinder:/usr/src/doofinder
- ./html:/var/www/html/
restart: unless-stopped
networks:
default:
front:
aliases:
- wordpress
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: root
WORDPRESS_DB_USER: root
WORDPRESS_DB_NAME: wordpress
DOCKER_SERVICE_PORT: ${DOCKER_SERVICE_PORT}
ports:
- "${DOCKER_SERVICE_PORT}:80"
4 changes: 2 additions & 2 deletions doofinder/doofinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Doofinder
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Version: 0.5.2
* Version: 0.5.3
* Author: Doofinder
* Description: Integrate Doofinder Search in your WordPress website.
*
Expand All @@ -30,7 +30,7 @@ class Doofinder_For_WordPress {
*
* @var string
*/
public static $version = '0.5.2';
public static $version = '0.5.3';

/**
* The only instance of Doofinder_For_WordPress
Expand Down
15 changes: 0 additions & 15 deletions doofinder/includes/settings/class-register-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,21 +309,6 @@ function () {
self::$top_level_menu
);

// Enable Internal Search
$internal_search_option_name =
$this->language->get_option_name( 'doofinder_for_wp_enable_internal_search' );
add_settings_field(
$internal_search_option_name,
__( 'Enable Internal Search', 'doofinder_for_wp' ),
function () use ( $internal_search_option_name ) {
$this->render_html_enable_internal_search( $internal_search_option_name );
},
self::$top_level_menu,
'doofinder-for-wp-search-settings'
);

register_setting( self::$top_level_menu, $internal_search_option_name );

// Enable JS Layer
$enable_js_layer_option_name =
$this->language->get_option_name( 'doofinder_for_wp_enable_js_layer' );
Expand Down
5 changes: 4 additions & 1 deletion doofinder/readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== Doofinder ===
Contributors: doofinder, chopchoporg
Tags: search, autocomplete
Version: 0.5.2
Version: 0.5.3
Requires at least: 4.1
Tested up to: 6.1
Stable tag: trunk
Expand Down Expand Up @@ -114,6 +114,9 @@ Just send your questions to <mailto:[email protected]> and we will try to an

== Changelog ==

= 0.5.3 =
- Remove internal search option

= 0.5.2 =
- Fix post id not restoring index after failure

Expand Down
12 changes: 0 additions & 12 deletions doofinder/views/wizard-step-3.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@

?></textarea>
</div>

<div class="form-row">
<label class="has-checkbox">
<?php _e( 'Do you want to enable Internal Search?', 'doofinder_for_wp' ); ?>

<input type="checkbox" name="enable-internal-search<?php echo $name_suffix; ?>"
<?php if ( Settings::is_internal_search_enabled( $options_suffix ) ): ?>
checked
<?php endif; ?>
>
</label>
</div>
<?php endforeach; ?>

<div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doofinder-wordpress",
"version": "0.5.2",
"version": "0.5.3",
"description": "Integrate Doofinder in your WordPress site with (almost) no effort.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit c8ff109

Please sign in to comment.