Version Description
- Released 2019-10-23
- Fixing options not being saved properly.
Download this release
Release Info
Developer | ronalfy |
Plugin | User Profile Picture |
Version | 2.3.7 |
Comparing to | |
See all releases |
Code changes from version 2.3.6 to 2.3.7
- metronet-profile-picture.php +4 -4
- readme.txt +7 -3
metronet-profile-picture.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: User Profile Picture
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/metronet-profile-picture/
|
5 |
Description: Use the native WP uploader on your user profile page.
|
6 |
Author: Ronald Huereca
|
7 |
-
Version: 2.3.
|
8 |
Requires at least: 3.5
|
9 |
Author URI: https://www.mediaron.com
|
10 |
Contributors: ronalfy
|
@@ -12,7 +12,7 @@ Text Domain: metronet-profile-picture
|
|
12 |
Domain Path: /languages
|
13 |
*/
|
14 |
|
15 |
-
define( 'METRONET_PROFILE_PICTURE_VERSION', '2.3.
|
16 |
define( 'METRONET_PROFILE_PICTURE_PLUGIN_NAME', 'User Profile Picture' );
|
17 |
define( 'METRONET_PROFILE_PICTURE_DIR', plugin_dir_path( __FILE__ ) );
|
18 |
define( 'METRONET_PROFILE_PICTURE_URL', plugins_url( '/', __FILE__ ) );
|
@@ -166,7 +166,8 @@ class Metronet_Profile_Picture {
|
|
166 |
public function admin_page() {
|
167 |
if ( isset( $_POST['submit'] ) && isset( $_POST['options'] ) ) {
|
168 |
check_admin_referer( 'save_mpp_options' );
|
169 |
-
$
|
|
|
170 |
printf( '<div class="updated"><p><strong>%s</strong></p></div>', esc_html__( 'Your options have been saved.', 'metronet-profile-picture' ) );
|
171 |
}
|
172 |
// Get options and defaults.
|
@@ -250,7 +251,6 @@ class Metronet_Profile_Picture {
|
|
250 |
* @return void
|
251 |
*/
|
252 |
public function update_options( $options ) {
|
253 |
-
$options = wp_unslash( $options );
|
254 |
foreach ( $options as $key => &$option ) {
|
255 |
switch ( $key ) {
|
256 |
default:
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/metronet-profile-picture/
|
5 |
Description: Use the native WP uploader on your user profile page.
|
6 |
Author: Ronald Huereca
|
7 |
+
Version: 2.3.7
|
8 |
Requires at least: 3.5
|
9 |
Author URI: https://www.mediaron.com
|
10 |
Contributors: ronalfy
|
12 |
Domain Path: /languages
|
13 |
*/
|
14 |
|
15 |
+
define( 'METRONET_PROFILE_PICTURE_VERSION', '2.3.7' );
|
16 |
define( 'METRONET_PROFILE_PICTURE_PLUGIN_NAME', 'User Profile Picture' );
|
17 |
define( 'METRONET_PROFILE_PICTURE_DIR', plugin_dir_path( __FILE__ ) );
|
18 |
define( 'METRONET_PROFILE_PICTURE_URL', plugins_url( '/', __FILE__ ) );
|
166 |
public function admin_page() {
|
167 |
if ( isset( $_POST['submit'] ) && isset( $_POST['options'] ) ) {
|
168 |
check_admin_referer( 'save_mpp_options' );
|
169 |
+
$options = wp_unslash( $_POST['options'] ); // phpcs:ignore
|
170 |
+
$this->update_options( $options );
|
171 |
printf( '<div class="updated"><p><strong>%s</strong></p></div>', esc_html__( 'Your options have been saved.', 'metronet-profile-picture' ) );
|
172 |
}
|
173 |
// Get options and defaults.
|
251 |
* @return void
|
252 |
*/
|
253 |
public function update_options( $options ) {
|
|
|
254 |
foreach ( $options as $key => &$option ) {
|
255 |
switch ( $key ) {
|
256 |
default:
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: ronalfy, Alaadiaa
|
|
3 |
Tags: users, user profile, gravatar, avatar, blocks, block
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 5.3
|
6 |
-
Stable tag: 2.3.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -126,6 +126,10 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
|
|
129 |
= 2.3.6 =
|
130 |
* Released 2019-10-09
|
131 |
* Updating compatibility with WordPress 5.3
|
@@ -335,5 +339,5 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
|
|
335 |
|
336 |
== Upgrade Notice ==
|
337 |
|
338 |
-
= 2.3.
|
339 |
-
|
3 |
Tags: users, user profile, gravatar, avatar, blocks, block
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 5.3
|
6 |
+
Stable tag: 2.3.7
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 2.3.7 =
|
130 |
+
* Released 2019-10-23
|
131 |
+
* Fixing options not being saved properly.
|
132 |
+
|
133 |
= 2.3.6 =
|
134 |
* Released 2019-10-09
|
135 |
* Updating compatibility with WordPress 5.3
|
339 |
|
340 |
== Upgrade Notice ==
|
341 |
|
342 |
+
= 2.3.7 =
|
343 |
+
Fixing options not being saved properly.
|