Changeset 2160663
- Timestamp:
- 09/21/2019 01:38:25 PM (6 years ago)
- Location:
- dew-profile-picture
- Files:
-
- 8 added
- 2 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/LICENSE (added)
-
tags/1.0.1/dew-profile-picture.php (added)
-
tags/1.0.1/img (added)
-
tags/1.0.1/img/placeholder.png (added)
-
tags/1.0.1/js (added)
-
tags/1.0.1/js/uploaders.js (added)
-
tags/1.0.1/readme.txt (added)
-
trunk/dew-profile-picture.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dew-profile-picture/trunk/dew-profile-picture.php
r1829585 r2160663 5 5 * Description: Use the native WP uploader on your user profile page. 6 6 * Author: Dew Technolab 7 * Version: 1.0. 07 * Version: 1.0.1 8 8 * Requires at least: 4.9 9 * Author URI: http://dewtechnolab. in/9 * Author URI: http://dewtechnolab.com/ 10 10 * Text Domain: dew-profile-picture 11 11 */ … … 47 47 public function insert_upload_form() { 48 48 $user_id = isset( $_GET[ 'user_id' ] ) ? absint( $_GET[ 'user_id' ] ) : 0; 49 if ( $user_id == 0 && IS_PROFILE_PAGE) {49 if ( $user_id == 0 && defined( 'IS_PROFILE_PAGE' ) && IS_PROFILE_PAGE == true ) { 50 50 $current_user = wp_get_current_user(); 51 51 $user_id = $current_user->ID; 52 52 } 53 $profile_pic = ($user!=='add-new-user') ? get_user_meta($user_id, 'profilepicture', true): false;53 $profile_pic = get_user_meta($user_id, 'profilepicture', true); 54 54 ?> 55 55 <table class="form-table fh-profile-upload-options"> … … 214 214 extract( $args ); //todo - get rid of evil extract 215 215 216 $profile_pic = ($user!=='add-new-user') ? get_user_meta($user_id, 'profilepicture', true): false; 217 $profile = '<img alt="" src="'.esc_url($profile_pic).'" class="avatar avatar-'.$size[0].' photo" height="'.$size[0].'" width="'.$size[0].'">'; 216 $Profile = ''; 217 $profile_pic = get_user_meta($user_id, 'profilepicture', true); 218 if ($profile_pic) { 219 $profile = '<img alt="" src="'.esc_url($profile_pic).'" class="avatar avatar-'.$size[0].' photo" height="'.$size[0].'" width="'.$size[0].'">'; 220 } 218 221 if ( $echo ) { 219 222 echo $Profile; -
dew-profile-picture/trunk/readme.txt
r1830912 r2160663 1 1 User Profile Picture 2 2 3 Contributors: Dew Technolab3 Contributors: dewtechnolab 4 4 Tags: users, user, user profile 5 5 Requires at least: 4.5 6 Stable tag: 1.0.0 7 Version: 1.0.0 8 Tested up to: 4.9 6 Stable tag: 1.0.1 7 Version: 1.0.1 8 Tested up to: 5.2.3 9 Requires PHP: 5.2.4 9 10 License: GPLv2 or later 10 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 100 101 101 102 103 = 1.0.1 = 104 105 * Fix error 106 107 108 102 109 = 1.0.0 = 103 110 104 111 * Initial release. 112 113 114 115 == Upgrade Notice == 116 117 118 119 = 1.0.1 = 120 121 * This version fixes a security related bug. Upgrade immediately.
Note: See TracChangeset
for help on using the changeset viewer.