File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function __construct() {
35
35
* @since 2.3.0
36
36
*/
37
37
public static function register_post_type () {
38
- $ slug = \wzkb_get_option ( 'kb_slug ' , 'knowledgebase ' );
38
+ $ slug = sanitize_title ( \wzkb_get_option ( 'kb_slug ' , 'knowledgebase ' ) );
39
39
$ archives = defined ( 'WZKB_DISABLE_ARCHIVE ' ) && WZKB_DISABLE_ARCHIVE ? false : $ slug ;
40
40
$ rewrite = defined ( 'WZKB_DISABLE_REWRITE ' ) && WZKB_DISABLE_REWRITE ? false : array (
41
41
'slug ' => $ slug ,
@@ -104,8 +104,8 @@ public static function register_post_type() {
104
104
* @since 2.3.0
105
105
*/
106
106
public static function register_taxonomies () {
107
- $ catslug = \wzkb_get_option ( 'category_slug ' , 'section ' );
108
- $ tagslug = \wzkb_get_option ( 'tag_slug ' , 'kb-tags ' );
107
+ $ catslug = sanitize_title ( \wzkb_get_option ( 'category_slug ' , 'section ' ) );
108
+ $ tagslug = sanitize_title ( \wzkb_get_option ( 'tag_slug ' , 'kb-tags ' ) );
109
109
110
110
$ args = array (
111
111
'hierarchical ' => true ,
Original file line number Diff line number Diff line change 13
13
* Plugin Name: WebberZone Knowledge Base
14
14
* Plugin URI: https://github.com/WebberZone/knowledgebase
15
15
* Description: Create a multi-product knowledge base on your WordPress site.
16
- * Version: 2.3.1
16
+ * Version: 2.3.2
17
17
* Author: WebberZone
18
18
* Author URI: https://webberzone.com
19
19
* License: GPL-2.0+
37
37
*
38
38
* @var string $wzkb_version Plugin version
39
39
*/
40
- define ( 'WZKB_VERSION ' , '2.3.1 ' );
40
+ define ( 'WZKB_VERSION ' , '2.3.2 ' );
41
41
}
42
42
43
43
if ( ! defined ( 'WZKB_PLUGIN_DIR ' ) ) {
Original file line number Diff line number Diff line change @@ -113,11 +113,16 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
113
113
114
114
== Upgrade Notice ==
115
115
116
- = 2.3.1 =
117
- Fixed security issue where arguments passed to the shortcodes were not properly sanitized.
116
+ = 2.3.2 =
117
+ Fixed security issue where Knowledge Base slug in settings was not sanitized.
118
118
119
119
== Changelog ==
120
120
121
+ = 2.3.2 =
122
+
123
+ * Bug fixes:
124
+ * Fixed security issue where Knowledge Base slug in settings was not sanitized.
125
+
121
126
= 2.3.1 =
122
127
123
128
* Bug fixes:
You can’t perform that action at this time.
0 commit comments