Version Description
- Security release. More protection added.
Download this release
Release Info
Developer | pronskiy |
Plugin | Search Exclude |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- js/search_exclude.js +6 -1
- readme.txt +4 -1
- search-exclude.php +3 -2
- views/bulk_edit.php +2 -1
js/search_exclude.js
CHANGED
@@ -35,6 +35,9 @@
|
|
35 |
// get the search exclude value
|
36 |
var $exclude = $bulk_row.find('select[name="sep[exclude]"]').val();
|
37 |
|
|
|
|
|
|
|
38 |
// save the data
|
39 |
$.ajax({
|
40 |
url: ajaxurl,
|
@@ -44,7 +47,9 @@
|
|
44 |
data: {
|
45 |
action: 'search_exclude_save_bulk_edit',
|
46 |
post_ids: $post_ids,
|
47 |
-
sep_exclude: $exclude
|
|
|
|
|
48 |
}
|
49 |
});
|
50 |
});
|
35 |
// get the search exclude value
|
36 |
var $exclude = $bulk_row.find('select[name="sep[exclude]"]').val();
|
37 |
|
38 |
+
var nonce = $bulk_row.find('input[name="_wpnonce_search_exclude_bulk_edit"]').val();
|
39 |
+
var referer = $bulk_row.find('input[name="_wp_http_referer"]').val();
|
40 |
+
|
41 |
// save the data
|
42 |
$.ajax({
|
43 |
url: ajaxurl,
|
47 |
data: {
|
48 |
action: 'search_exclude_save_bulk_edit',
|
49 |
post_ids: $post_ids,
|
50 |
+
sep_exclude: $exclude,
|
51 |
+
_wpnonce_search_exclude_bulk_edit: nonce,
|
52 |
+
_wp_http_referer: referer
|
53 |
}
|
54 |
});
|
55 |
});
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: pronskiy, williamdodson, stevelock
|
|
3 |
Tags: admin, plugin, search
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.3
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -78,6 +78,9 @@ function filterForProducts($exclude, $query)
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
81 |
= 1.2.4 =
|
82 |
* Security release. All users are encouraged to update.
|
83 |
* Added filter searchexclude_filter_permissions.
|
3 |
Tags: admin, plugin, search
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 5.3
|
6 |
+
Stable tag: 1.2.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 1.2.5 =
|
82 |
+
* Security release. More protection added.
|
83 |
+
|
84 |
= 1.2.4 =
|
85 |
* Security release. All users are encouraged to update.
|
86 |
* Added filter searchexclude_filter_permissions.
|
search-exclude.php
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
/*
|
3 |
Plugin Name: Search Exclude
|
4 |
Description: Hide any page or post from the WordPress search results by checking off the checkbox.
|
5 |
-
Version: 1.2.
|
6 |
Author: Roman Pronskiy
|
7 |
Author URI: http://pronskiy.com
|
8 |
Plugin URI: http://wordpress.org/plugins/search-exclude/
|
9 |
*/
|
10 |
|
11 |
/*
|
12 |
-
Copyright (c) 2012-
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
@@ -140,6 +140,7 @@ class SearchExclude
|
|
140 |
|
141 |
public function saveBulkEdit()
|
142 |
{
|
|
|
143 |
$this->checkPermissions();
|
144 |
$postIds = !empty($_POST['post_ids']) ? $this->filterPostIds($_POST[ 'post_ids' ]) : false;
|
145 |
$exclude = isset($_POST['sep_exclude']) && '' !== $_POST['sep_exclude']
|
2 |
/*
|
3 |
Plugin Name: Search Exclude
|
4 |
Description: Hide any page or post from the WordPress search results by checking off the checkbox.
|
5 |
+
Version: 1.2.5
|
6 |
Author: Roman Pronskiy
|
7 |
Author URI: http://pronskiy.com
|
8 |
Plugin URI: http://wordpress.org/plugins/search-exclude/
|
9 |
*/
|
10 |
|
11 |
/*
|
12 |
+
Copyright (c) 2012-2019 Roman Pronskiy
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
140 |
|
141 |
public function saveBulkEdit()
|
142 |
{
|
143 |
+
check_ajax_referer( 'search_exclude_bulk_edit', '_wpnonce_search_exclude_bulk_edit' );
|
144 |
$this->checkPermissions();
|
145 |
$postIds = !empty($_POST['post_ids']) ? $this->filterPostIds($_POST[ 'post_ids' ]) : false;
|
146 |
$exclude = isset($_POST['sep_exclude']) && '' !== $_POST['sep_exclude']
|
views/bulk_edit.php
CHANGED
@@ -9,6 +9,7 @@
|
|
9 |
<option value="0">Show</option>
|
10 |
</select>
|
11 |
</label>
|
|
|
12 |
</div>
|
13 |
</div>
|
14 |
-
</fieldset>
|
9 |
<option value="0">Show</option>
|
10 |
</select>
|
11 |
</label>
|
12 |
+
<?php wp_nonce_field( 'search_exclude_bulk_edit', '_wpnonce_search_exclude_bulk_edit'); ?>
|
13 |
</div>
|
14 |
</div>
|
15 |
+
</fieldset>
|