Skip to content

Commit

Permalink
Fixed missing wick files in Admin
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Dec 28, 2014
1 parent 5694726 commit 4a29091
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 34 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__Requires:__ 3.0

__Tested up to:__ 4.0
__Tested up to:__ 4.2

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

Expand Down
31 changes: 4 additions & 27 deletions admin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function bsearch_options() {
<div id="post-body" class="metabox-holder columns-2">
<div id="post-body-content">
<form method="post" id="bsearch_options" name="bsearch_options" onsubmit="return checkForm()">
<div id="genopdiv" class="postbox closed"><div class="handlediv" title="<?php _e( 'Click to toggle', BSEARCH_LOCAL_NAME ); ?>"><br /></div>
<div id="genopdiv" class="postbox"><div class="handlediv" title="<?php _e( 'Click to toggle', BSEARCH_LOCAL_NAME ); ?>"><br /></div>
<h3 class='hndle'><span><?php _e( 'General options', BSEARCH_LOCAL_NAME ); ?></span></h3>
<div class="inside">
<table class="form-table">
Expand Down Expand Up @@ -207,7 +207,7 @@ function bsearch_options() {
</table>
</div>
</div>
<div id="outputopdiv" class="postbox closed"><div class="handlediv" title="<?php _e( 'Click to toggle', BSEARCH_LOCAL_NAME ); ?>"><br /></div>
<div id="outputopdiv" class="postbox"><div class="handlediv" title="<?php _e( 'Click to toggle', BSEARCH_LOCAL_NAME ); ?>"><br /></div>
<h3 class='hndle'><span><?php _e( 'Output options', BSEARCH_LOCAL_NAME ); ?></span></h3>
<div class="inside">
<table class="form-table">
Expand Down Expand Up @@ -286,7 +286,7 @@ function bsearch_options() {
</table>
</div>
</div>
<div id="customcssdiv" class="postbox closed"><div class="handlediv" title="<?php _e( 'Click to toggle', BSEARCH_LOCAL_NAME ); ?>"><br /></div>
<div id="customcssdiv" class="postbox"><div class="handlediv" title="<?php _e( 'Click to toggle', BSEARCH_LOCAL_NAME ); ?>"><br /></div>
<h3 class='hndle'><span><?php _e( 'Custom CSS', BSEARCH_LOCAL_NAME ); ?></span></h3>
<div class="inside">
<table class="form-table">
Expand All @@ -305,7 +305,7 @@ function bsearch_options() {
</form>

<form method="post" id="bsearch_reset_options" name="bsearch_reset_options" onsubmit="return checkForm()">
<div id="resetopdiv" class="postbox closed"><div class="handlediv" title="<?php _e( 'Click to toggle', BSEARCH_LOCAL_NAME ); ?>"><br /></div>
<div id="resetopdiv" class="postbox"><div class="handlediv" title="<?php _e( 'Click to toggle', BSEARCH_LOCAL_NAME ); ?>"><br /></div>
<h3 class='hndle'><span><?php _e( 'Reset count', BSEARCH_LOCAL_NAME ); ?></span></h3>
<div class="inside">
<p class="description">
Expand Down Expand Up @@ -464,29 +464,6 @@ function checkForm() {
//]]>
</script>

<link rel="stylesheet" type="text/css" href="<?php echo $bsearch_url ?>/wick/wick.css" />
<script type="text/javascript" language="JavaScript">
//<![CDATA[
<?php
function wick_data() {
global $wpdb;

$categories = get_categories( 'hide_empty=0' );
$str = 'collection = [';
foreach ( $categories as $cat ) {
$str .= "'" . $cat->slug . "',";
}
$str = substr( $str, 0, -1 ); // Remove trailing comma
$str .= '];';

echo $str;
}
wick_data();
?>
//]]>
</script>

<script type="text/javascript" src="<?php echo $bsearch_url ?>/wick/wick.js"></script>
<script type="text/javascript" src="<?php echo $bsearch_url ?>/jscolor/jscolor.js"></script>
<?php
}
Expand Down
4 changes: 2 additions & 2 deletions better-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @wordpress-plugin
* Plugin Name: Better Search
* Version: 1.3.5
* Version: 1.3.6
* Plugin URI: http://ajaydsouza.com/wordpress/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.
* Author: Ajay D'Souza
Expand Down Expand Up @@ -1197,7 +1197,7 @@ function bsearch_default_options() {
.bsearch_footer { text-align: center; }
';

$badwords = array( 'anal', 'anus', 'ass', 'bastard', 'beastiality', 'bestiality', 'bewb', 'bitch', 'blow', 'blumpkin', 'boob', 'cawk', 'cock', 'choad', 'cooter', 'cornhole', 'cum', 'cunt', 'dick', 'dildo', 'dong', 'dyke', 'douche', 'fag', 'faggot', 'fart', 'foreskin', 'fuck', 'fuk', 'gangbang', 'gook', 'handjob', 'homo', 'honkey', 'humping', 'jiz', 'jizz', 'kike', 'kunt', 'labia', 'muff', 'nigger', 'nutsack', 'pen1s', 'penis', 'piss', 'poon', 'poop', 'punani', 'pussy', 'queef', 'queer', 'quim', 'rimjob', 'rape', 'rectal', 'rectum', 'semen', 'sex', 'shit', 'slut', 'spick', 'spoo', 'spooge', 'taint', 'titty', 'titties', 'twat', 'vag', 'vagina', 'vulva', 'wank', 'whore', );
$badwords = array( 'anal', 'anus', 'ass', 'bastard', 'beastiality', 'bestiality', 'bewb', 'bitch', 'blow', 'blumpkin', 'boob', 'cawk', 'cock', 'choad', 'cooter', 'cornhole', 'cum', 'cunt', 'dick', 'dildo', 'dong', 'dyke', 'douche', 'fag', 'faggot', 'fart', 'foreskin', 'fuck', 'fuk', 'gangbang', 'gook', 'handjob', 'homo', 'honkey', 'humping', 'jiz', 'jizz', 'kike', 'kunt', 'labia', 'muff', 'nigger', 'nutsack', 'pen1s', 'penis', 'piss', 'poon', 'poop', 'porn', 'punani', 'pussy', 'queef', 'queer', 'quim', 'rimjob', 'rape', 'rectal', 'rectum', 'semen', 'sex', 'shit', 'slut', 'spick', 'spoo', 'spooge', 'taint', 'titty', 'titties', 'twat', 'vag', 'vagina', 'vulva', 'wank', 'whore', );

$bsearch_settings = array(
'seamless' => false, // Seamless integration mode
Expand Down
11 changes: 7 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== Better Search ===
Tags: search, Better Search, related search, search results, heatmap, popular searches, top searches, relevance
Tags: search, Better Search, related search, relevant search, search results, heatmap, popular searches, top searches, relevance
Contributors: Ajay
Donate link: http://ajaydsouza.com/donate/
Stable tag: trunk
Requires at least: 3.1
Tested up to: 4.0
Tested up to: 4.2
License: GPLv2 or later


Expand Down Expand Up @@ -37,13 +37,16 @@ Additionally, the plugin also tracks the searches and you to display a "search h

== Upgrade Notice ==

= 1.3.5 =
Fixed Reflective XSS vulnerability; other bug fixes;
= 1.3.6 =
Fixes missing wick files in Settings page 404 error;
Check the Changelog for details


== Changelog ==

= 1.3.6 =
Fixes missing wick files in Settings page 404 error

= 1.3.5 =
* Fixed: Seamless mode interfered with the Media search in the Admin
* Fixed: Potential Reflective XSS vulnerability
Expand Down

0 comments on commit 4a29091

Please sign in to comment.