Version Description
- Released 2019-02-16
- Added filter to get users in Gutenberg besides author
Download this release
Release Info
Developer | ronalfy |
Plugin | User Profile Picture |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- metronet-profile-picture.php +12 -3
- readme.txt +10 -3
metronet-profile-picture.php
CHANGED
@@ -4,14 +4,14 @@ 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.1.
|
8 |
Requires at least: 3.5
|
9 |
Author URI: https://www.mediaron.com
|
10 |
Contributors: ronalfy
|
11 |
Text Domain: metronet-profile-picture
|
12 |
Domain Path: /languages
|
13 |
*/
|
14 |
-
define( 'METRONET_PROFILE_PICTURE_VERSION', '2.1.
|
15 |
class Metronet_Profile_Picture {
|
16 |
|
17 |
//private
|
@@ -686,7 +686,16 @@ class Metronet_Profile_Picture {
|
|
686 |
* @param array $request WP REST API array
|
687 |
**/
|
688 |
public function rest_api_get_users( $request ) {
|
689 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
690 |
$user_results = $user_query->get_results();
|
691 |
$return = array();
|
692 |
foreach( $user_results as $result ) {
|
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.1.3
|
8 |
Requires at least: 3.5
|
9 |
Author URI: https://www.mediaron.com
|
10 |
Contributors: ronalfy
|
11 |
Text Domain: metronet-profile-picture
|
12 |
Domain Path: /languages
|
13 |
*/
|
14 |
+
define( 'METRONET_PROFILE_PICTURE_VERSION', '2.1.3' );
|
15 |
class Metronet_Profile_Picture {
|
16 |
|
17 |
//private
|
686 |
* @param array $request WP REST API array
|
687 |
**/
|
688 |
public function rest_api_get_users( $request ) {
|
689 |
+
|
690 |
+
/**
|
691 |
+
* Filter the capability types of users.
|
692 |
+
*
|
693 |
+
* @since 2.1.3
|
694 |
+
*
|
695 |
+
* @param string User role for users
|
696 |
+
*/
|
697 |
+
$capabilities = apply_filters( 'mpp_gutenberg_user_role', 'authors' );
|
698 |
+
$user_query = new WP_User_Query( array( 'who' => $capabilities, 'orderby' => 'display_name' ) );
|
699 |
$user_results = $user_query->get_results();
|
700 |
$return = array();
|
701 |
foreach( $user_results as $result ) {
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: ronalfy, Alaadiaa
|
3 |
Tags: users, user profile, gravatar, avatar, blocks, block
|
4 |
Requires at least: 3.5
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 2.1.
|
7 |
Requires PHP: 5.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -105,7 +105,11 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
-
= 2.
|
|
|
|
|
|
|
|
|
109 |
* Released 2019-01-26
|
110 |
* Resolving PHP notice for dirname
|
111 |
|
@@ -265,6 +269,9 @@ Yes, but you'll have to set a new profile image per site. This is currently a l
|
|
265 |
|
266 |
== Upgrade Notice ==
|
267 |
|
|
|
|
|
|
|
268 |
= 2.1.2 =
|
269 |
Resolving PHP notice for dirname
|
270 |
|
2 |
Contributors: ronalfy, Alaadiaa
|
3 |
Tags: users, user profile, gravatar, avatar, blocks, block
|
4 |
Requires at least: 3.5
|
5 |
+
Tested up to: 5.1
|
6 |
+
Stable tag: 2.1.3
|
7 |
Requires PHP: 5.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 2.1.3 =
|
109 |
+
* Released 2019-02-16
|
110 |
+
* Added filter to get users in Gutenberg besides author
|
111 |
+
|
112 |
+
= 2.1.2 =
|
113 |
* Released 2019-01-26
|
114 |
* Resolving PHP notice for dirname
|
115 |
|
269 |
|
270 |
== Upgrade Notice ==
|
271 |
|
272 |
+
= 2.1.3 =
|
273 |
+
Added filter to get users in Gutenberg besides author
|
274 |
+
|
275 |
= 2.1.2 =
|
276 |
Resolving PHP notice for dirname
|
277 |
|