Version Description
Download this release
Release Info
Developer | evertiro |
Plugin | Username Changer |
Version | 3.2.1 |
Comparing to | |
See all releases |
Code changes from version 3.2.0 to 3.2.1
- class-username-changer.php +2 -2
- includes/class-username-changer-template-tags.php +8 -8
- includes/libraries/simple-settings/CHANGELOG.md +4 -0
- includes/libraries/simple-settings/class-simple-settings.php +2 -1
- includes/libraries/simple-settings/modules/sysinfo/class-simple-settings-sysinfo.php +9 -0
- includes/libraries/simple-settings/package.json +1 -1
- languages/username-changer.pot +5 -4
- readme.txt +1 -1
class-username-changer.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Change usernames easily
|
6 |
* Author: Widgit Team
|
7 |
* Author URI: https://widgit.io
|
8 |
-
* Version: 3.2.
|
9 |
* Text Domain: username-changer
|
10 |
* Domain Path: languages
|
11 |
*
|
@@ -119,7 +119,7 @@ if ( ! class_exists( 'Username_Changer' ) ) {
|
|
119 |
private function setup_constants() {
|
120 |
// Plugin version.
|
121 |
if ( ! defined( 'USERNAME_CHANGER_VER' ) ) {
|
122 |
-
define( 'USERNAME_CHANGER_VER', '3.2.
|
123 |
}
|
124 |
|
125 |
// Plugin path.
|
5 |
* Description: Change usernames easily
|
6 |
* Author: Widgit Team
|
7 |
* Author URI: https://widgit.io
|
8 |
+
* Version: 3.2.1
|
9 |
* Text Domain: username-changer
|
10 |
* Domain Path: languages
|
11 |
*
|
119 |
private function setup_constants() {
|
120 |
// Plugin version.
|
121 |
if ( ! defined( 'USERNAME_CHANGER_VER' ) ) {
|
122 |
+
define( 'USERNAME_CHANGER_VER', '3.2.1' );
|
123 |
}
|
124 |
|
125 |
// Plugin path.
|
includes/class-username-changer-template-tags.php
CHANGED
@@ -234,18 +234,18 @@ function username_changer_tags_list( $context = 'message' ) {
|
|
234 |
|
235 |
// Check.
|
236 |
if ( count( $tags ) > 0 ) {
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
foreach ( $tags as $tag ) {
|
241 |
// Add tag to list.
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
}
|
246 |
-
|
247 |
</ul>
|
248 |
-
|
249 |
}
|
250 |
}
|
251 |
|
234 |
|
235 |
// Check.
|
236 |
if ( count( $tags ) > 0 ) {
|
237 |
+
?>
|
238 |
+
<ul class="username-changer-template-tag-list">
|
239 |
+
<?php
|
240 |
foreach ( $tags as $tag ) {
|
241 |
// Add tag to list.
|
242 |
+
?>
|
243 |
+
<li class="username-changer-template-tag"><span>{<?php echo esc_attr( $tag['tag'] ); ?>}</span><?php echo esc_attr( $tag['desc'] ); ?></li>
|
244 |
+
<?php
|
245 |
}
|
246 |
+
?>
|
247 |
</ul>
|
248 |
+
<?php
|
249 |
}
|
250 |
}
|
251 |
|
includes/libraries/simple-settings/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
# Changelog
|
2 |
|
|
|
|
|
|
|
|
|
3 |
## 1.2.0 (2020-02-06)
|
4 |
|
5 |
* Updated: Bring code quality up to VIP standards
|
1 |
# Changelog
|
2 |
|
3 |
+
## 1.2.1 (2020-02-13)
|
4 |
+
|
5 |
+
* Added: Permissions check for sysinfo download
|
6 |
+
|
7 |
## 1.2.0 (2020-02-06)
|
8 |
|
9 |
* Updated: Bring code quality up to VIP standards
|
includes/libraries/simple-settings/class-simple-settings.php
CHANGED
@@ -28,7 +28,7 @@ class Simple_Settings {
|
|
28 |
* @access private
|
29 |
* @since 1.0.0
|
30 |
*/
|
31 |
-
private $version = '1.2.
|
32 |
|
33 |
|
34 |
/**
|
@@ -1152,6 +1152,7 @@ class Simple_Settings {
|
|
1152 |
<a class="button button-primary" href="<?php echo esc_url( add_query_arg( $this->slug . '-settings-action', 'download_system_info' ) ); ?>"><?php esc_attr_e( 'Download System Info File', 'simple-settings' ); ?></a>
|
1153 |
</p>
|
1154 |
<?php
|
|
|
1155 |
do_action( $this->func . '_after_setting_output', $args );
|
1156 |
}
|
1157 |
}
|
28 |
* @access private
|
29 |
* @since 1.0.0
|
30 |
*/
|
31 |
+
private $version = '1.2.1';
|
32 |
|
33 |
|
34 |
/**
|
1152 |
<a class="button button-primary" href="<?php echo esc_url( add_query_arg( $this->slug . '-settings-action', 'download_system_info' ) ); ?>"><?php esc_attr_e( 'Download System Info File', 'simple-settings' ); ?></a>
|
1153 |
</p>
|
1154 |
<?php
|
1155 |
+
wp_nonce_field( esc_attr( $this->func ) . 'system-info-nonce', esc_attr( $this->func ) . 'system-info-nonce' );
|
1156 |
do_action( $this->func . '_after_setting_output', $args );
|
1157 |
}
|
1158 |
}
|
includes/libraries/simple-settings/modules/sysinfo/class-simple-settings-sysinfo.php
CHANGED
@@ -300,6 +300,15 @@ class Simple_Settings_Sysinfo {
|
|
300 |
* @return void
|
301 |
*/
|
302 |
public function download_system_info() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
nocache_headers();
|
304 |
|
305 |
header( 'Content-Type: text/plain' );
|
300 |
* @return void
|
301 |
*/
|
302 |
public function download_system_info() {
|
303 |
+
if ( isset( $_REQUEST[ esc_attr( $this->func ) . 'system-info-nonce' ] ) ) {
|
304 |
+
check_admin_referer( esc_attr( $this->func ) . 'system-info-nonce', esc_attr( $this->func ) . 'system-info-nonce' );
|
305 |
+
}
|
306 |
+
|
307 |
+
// Ensure that the user should be here.
|
308 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
309 |
+
return;
|
310 |
+
}
|
311 |
+
|
312 |
nocache_headers();
|
313 |
|
314 |
header( 'Content-Type: text/plain' );
|
includes/libraries/simple-settings/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "simple-settings",
|
3 |
-
"version": "1.
|
4 |
"private": true,
|
5 |
"devDependencies": {
|
6 |
"grunt": "^1.0.4",
|
1 |
{
|
2 |
"name": "simple-settings",
|
3 |
+
"version": "1.2.1",
|
4 |
"private": true,
|
5 |
"devDependencies": {
|
6 |
"grunt": "^1.0.4",
|
languages/username-changer.pot
CHANGED
@@ -2,9 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the Username Changer package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Username Changer 3.2.
|
6 |
-
"Report-Msgid-Bugs-To:
|
7 |
-
"
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -339,7 +340,7 @@ msgstr ""
|
|
339 |
msgid "The minimum allowed username length"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: tests/bootstrap.php:
|
343 |
msgid "HTTP requests disabled for unit tests"
|
344 |
msgstr ""
|
345 |
|
2 |
# This file is distributed under the same license as the Username Changer package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Username Changer 3.2.1\n"
|
6 |
+
"Report-Msgid-Bugs-To: "
|
7 |
+
"https://gitlab.com/widgitlabs/wordpress/Username-Changer/issues\n"
|
8 |
+
"POT-Creation-Date: 2020-02-13 19:08:19+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
340 |
msgid "The minimum allowed username length"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: tests/bootstrap.php:65
|
344 |
msgid "HTTP requests disabled for unit tests"
|
345 |
msgstr ""
|
346 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://evertiro.com/donate/
|
|
4 |
Tags: user, username, display name, login
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3.2
|
7 |
-
Stable tag: 3.2.
|
8 |
|
9 |
Change usernames easily
|
10 |
|
4 |
Tags: user, username, display name, login
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.3.2
|
7 |
+
Stable tag: 3.2.1
|
8 |
|
9 |
Change usernames easily
|
10 |
|