Version Description
- Optimised retrieval of administrators for settings page
Download this release
Release Info
Developer | glen_scott |
Plugin | User Photo |
Version | 0.9.8 |
Comparing to | |
See all releases |
Code changes from version 0.9.7 to 0.9.8
- readme.txt +4 -1
- user-photo.php +2 -3
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: westonruter, ryanhellyer, glen_scott
|
|
3 |
Tags: users, photos, images
|
4 |
Requires at least: 3.0.5
|
5 |
Tested up to: 4.3.1
|
6 |
-
Stable tag: 0.9.
|
7 |
|
8 |
Allows a user to associate a photo with their account and for this photo to be displayed in their posts and comments.
|
9 |
|
@@ -114,6 +114,9 @@ If you value this plugin, *please donate* to ensure that it may continue to be m
|
|
114 |
|
115 |
== Changelog ==
|
116 |
|
|
|
|
|
|
|
117 |
= 0.9.7 =
|
118 |
* Fixed WordPress deprecated notices
|
119 |
|
3 |
Tags: users, photos, images
|
4 |
Requires at least: 3.0.5
|
5 |
Tested up to: 4.3.1
|
6 |
+
Stable tag: 0.9.8
|
7 |
|
8 |
Allows a user to associate a photo with their account and for this photo to be displayed in their posts and comments.
|
9 |
|
114 |
|
115 |
== Changelog ==
|
116 |
|
117 |
+
= 0.9.8 =
|
118 |
+
* Optimised retrieval of administrators for settings page
|
119 |
+
|
120 |
= 0.9.7 =
|
121 |
* Fixed WordPress deprecated notices
|
122 |
|
user-photo.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: User Photo
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/user-photo/
|
5 |
Description: Allows users to associate photos with their accounts by accessing their "Your Profile" page. Uploaded images are resized to fit the dimensions specified on the options page; a thumbnail image is also generated. New template tags introduced are: <code>userphoto_the_author_photo</code>, <code>userphoto_the_author_thumbnail</code>, <code>userphoto_comment_author_photo</code>, and <code>userphoto_comment_author_thumbnail</code>. Uploaded images may be moderated by administrators.
|
6 |
-
Version: 0.9.
|
7 |
Author: <a href="http://weston.ruter.net/">Weston Ruter</a>
|
8 |
|
9 |
Original code by Weston Ruter <http://weston.ruter.net> at Shepherd Interactive <http://shepherd-interactive.com>.
|
@@ -775,8 +775,7 @@ function userphoto_options_page(){
|
|
775 |
<select id='userphoto_admin_notified' name="userphoto_admin_notified">
|
776 |
<option value="0" class='none'>(none)</option>
|
777 |
<?php
|
778 |
-
|
779 |
-
$users = $wpdb->get_results("SELECT ID FROM $wpdb->users ORDER BY user_login");
|
780 |
foreach($users as $user){
|
781 |
$u = get_userdata($user->ID);
|
782 |
if($u->user_level == 10){ #if($u->has_cap('administrator')){
|
3 |
Plugin Name: User Photo
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/user-photo/
|
5 |
Description: Allows users to associate photos with their accounts by accessing their "Your Profile" page. Uploaded images are resized to fit the dimensions specified on the options page; a thumbnail image is also generated. New template tags introduced are: <code>userphoto_the_author_photo</code>, <code>userphoto_the_author_thumbnail</code>, <code>userphoto_comment_author_photo</code>, and <code>userphoto_comment_author_thumbnail</code>. Uploaded images may be moderated by administrators.
|
6 |
+
Version: 0.9.8
|
7 |
Author: <a href="http://weston.ruter.net/">Weston Ruter</a>
|
8 |
|
9 |
Original code by Weston Ruter <http://weston.ruter.net> at Shepherd Interactive <http://shepherd-interactive.com>.
|
775 |
<select id='userphoto_admin_notified' name="userphoto_admin_notified">
|
776 |
<option value="0" class='none'>(none)</option>
|
777 |
<?php
|
778 |
+
$users = get_users(array("role" => "Administrator"));
|
|
|
779 |
foreach($users as $user){
|
780 |
$u = get_userdata($user->ID);
|
781 |
if($u->user_level == 10){ #if($u->has_cap('administrator')){
|