Version Description
- Security Patch: Discontinuing the support for legacy import reported by @Animesh of Automattic
=
Download this release
Release Info
Developer | VideoUserManuals |
Plugin | White Label CMS |
Version | 2.5 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.5
- changelog.txt +4 -0
- includes/classes/Settings.php +0 -42
- readme.txt +3 -4
- wlcms-plugin.php +2 -2
changelog.txt
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
3 |
= 2.3 =
|
4 |
* Improved: Hiding of Dashboard Widgets. Props to @tanohex
|
5 |
* Bug Fix: Fixed hiding WooCommerce Home
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 2.4 =
|
4 |
+
* Improved: Improved Web Accessibility reported by @jflds
|
5 |
+
* Minor fixes
|
6 |
+
|
7 |
= 2.3 =
|
8 |
* Improved: Hiding of Dashboard Widgets. Props to @tanohex
|
9 |
* Bug Fix: Fixed hiding WooCommerce Home
|
includes/classes/Settings.php
CHANGED
@@ -191,9 +191,6 @@ class WLCMS_Settings
|
|
191 |
$uploaded_file_type = $arr_file_type['type'];
|
192 |
$allowed_file_types = array('application/json');
|
193 |
|
194 |
-
//Check if legacy
|
195 |
-
$this->legacy_import($temp_file, $uploaded_file_type);
|
196 |
-
|
197 |
if (!in_array($uploaded_file_type, $allowed_file_types)) {
|
198 |
WLCMS_Queue('Upload a valid .json file.', 'error');
|
199 |
wp_redirect(wlcms()->admin_url());
|
@@ -224,45 +221,6 @@ class WLCMS_Settings
|
|
224 |
exit;
|
225 |
}
|
226 |
|
227 |
-
function legacy_import($temp_file, $uploaded_file_type)
|
228 |
-
{
|
229 |
-
global $wpdb;
|
230 |
-
|
231 |
-
if (!in_array($uploaded_file_type, array('text/plain'))) {
|
232 |
-
return false;
|
233 |
-
}
|
234 |
-
|
235 |
-
$import = file_get_contents($temp_file);
|
236 |
-
$import = preg_replace_callback('/s:([0-9]+):\"(.*?)\";/', 'vum_fix_json', $import);
|
237 |
-
$import = unserialize($import);
|
238 |
-
|
239 |
-
if (!is_array($import)) {
|
240 |
-
return false;
|
241 |
-
}
|
242 |
-
|
243 |
-
|
244 |
-
delete_option("wlcms_options");
|
245 |
-
$wpdb->get_results($wpdb->prepare("DELETE FROM $wpdb->options WHERE option_name LIKE %s", 'wlcms_o_%'));
|
246 |
-
|
247 |
-
$site_url = get_bloginfo('url');
|
248 |
-
|
249 |
-
foreach ($import as $name => $value) {
|
250 |
-
|
251 |
-
// If the value includes this shortcode, replace it.
|
252 |
-
$val = str_replace('{SITEURL}', $site_url, $value);
|
253 |
-
|
254 |
-
// Check that our option key starts with WLCMS
|
255 |
-
if (strpos($name, 'wlcms_o') === 0) {
|
256 |
-
update_option($name, $val);
|
257 |
-
} else {
|
258 |
-
wp_die(__('<strong>Error!</strong> During the import process we almost imported a non White Label CMS setting - please ensure you uploaded the correct file and try again.'));
|
259 |
-
}
|
260 |
-
}
|
261 |
-
|
262 |
-
WLCMS_Queue('Your import has been completed.');
|
263 |
-
wp_redirect(wlcms()->admin_url());
|
264 |
-
exit;
|
265 |
-
}
|
266 |
|
267 |
public function export()
|
268 |
{
|
191 |
$uploaded_file_type = $arr_file_type['type'];
|
192 |
$allowed_file_types = array('application/json');
|
193 |
|
|
|
|
|
|
|
194 |
if (!in_array($uploaded_file_type, $allowed_file_types)) {
|
195 |
WLCMS_Queue('Upload a valid .json file.', 'error');
|
196 |
wp_redirect(wlcms()->admin_url());
|
221 |
exit;
|
222 |
}
|
223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
|
225 |
public function export()
|
226 |
{
|
readme.txt
CHANGED
@@ -9,7 +9,7 @@ Author: Video User Manuals
|
|
9 |
Requires at least: 3.3
|
10 |
Requires PHP: 5.4
|
11 |
Tested up to: 6.1.1
|
12 |
-
Stable tag: 2.
|
13 |
|
14 |
Customise dashboard panels and branding, hide menus plus lots more.
|
15 |
|
@@ -66,9 +66,8 @@ There is so much that you can do with White Label CMS, but we want the experienc
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
-
= 2.
|
70 |
-
*
|
71 |
-
* Minor fixes
|
72 |
|
73 |
== Frequently Asked Questions ==
|
74 |
= Who is this plugin for?=
|
9 |
Requires at least: 3.3
|
10 |
Requires PHP: 5.4
|
11 |
Tested up to: 6.1.1
|
12 |
+
Stable tag: 2.5
|
13 |
|
14 |
Customise dashboard panels and branding, hide menus plus lots more.
|
15 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 2.5 =
|
70 |
+
* Security Patch: Discontinuing the support for legacy import reported by @Animesh of Automattic
|
|
|
71 |
|
72 |
== Frequently Asked Questions ==
|
73 |
= Who is this plugin for?=
|
wlcms-plugin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: White Label CMS
|
4 |
Plugin URI: https://www.videousermanuals.com/white-label-cms/?utm_campaign=wlcms&utm_medium=plugin&utm_source=readme-txt
|
5 |
Description: A plugin that allows you to brand WordPress CMS as your own
|
6 |
-
Version: 2.
|
7 |
Author: www.videousermanuals.com
|
8 |
Author URI: https://www.videousermanuals.com/?utm_campaign=wlcms&utm_medium=plugin&utm_source=readme-txt
|
9 |
Text Domain: white-label-cms
|
@@ -13,7 +13,7 @@ Domain Path: /languages
|
|
13 |
|
14 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
15 |
|
16 |
-
define('WLCMS_VERSION', '2.
|
17 |
define("WLCMS_DIR", plugin_dir_path(__FILE__));
|
18 |
define("WLCMS_ASSETS_URL", plugin_dir_url(__FILE__) . 'assets/');
|
19 |
define("WLCMS_BASENAME", plugin_basename(__FILE__));
|
3 |
Plugin Name: White Label CMS
|
4 |
Plugin URI: https://www.videousermanuals.com/white-label-cms/?utm_campaign=wlcms&utm_medium=plugin&utm_source=readme-txt
|
5 |
Description: A plugin that allows you to brand WordPress CMS as your own
|
6 |
+
Version: 2.5
|
7 |
Author: www.videousermanuals.com
|
8 |
Author URI: https://www.videousermanuals.com/?utm_campaign=wlcms&utm_medium=plugin&utm_source=readme-txt
|
9 |
Text Domain: white-label-cms
|
13 |
|
14 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
15 |
|
16 |
+
define('WLCMS_VERSION', '2.5');
|
17 |
define("WLCMS_DIR", plugin_dir_path(__FILE__));
|
18 |
define("WLCMS_ASSETS_URL", plugin_dir_url(__FILE__) . 'assets/');
|
19 |
define("WLCMS_BASENAME", plugin_basename(__FILE__));
|