Changeset 2207900
- Timestamp:
- 12/07/2019 10:17:03 PM (6 years ago)
- Location:
- custom-post-avatar/trunk
- Files:
-
- 3 edited
-
custom-post-avatar.js (modified) (1 diff)
-
custom-post-avatar.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-post-avatar/trunk/custom-post-avatar.js
r2207485 r2207900 80 80 jQuery( '#custom-post-avatar-uploader' ).removeClass( 'progress' ); 81 81 if( response['status'] == 'success' ) { 82 82 83 //console.log( 'Success', up, file, response ); 83 84 //var file_url = window.wpcpa_user_path_url + file['name']; 84 85 var file_url = response['attachment']['src']; 85 /* 86 var $img = jQuery( '<img>' ); 87 $img.attr( 'src', file_url ); 88 $img.attr( 'title', file_url.split(/[\\/]/).pop() ); 89 $img.appendTo( '#custom-post-avatar-list' ); 90 */ 86 87 var $label = jQuery('<label>'); 88 91 89 var $radio = jQuery('<input type="radio" />'); 92 90 $radio.attr( 'value', file_url.split(/[\\/]/).pop() ); 93 91 $radio.attr( 'name', 'custom_post_avatar_default' ); 94 $radio.attr( 'style', 'background-image:url(' + file_url + ');' ); 95 $radio.appendTo( '#custom-post-avatar-list' ); 92 $radio.appendTo( $label ); 93 94 var $img = jQuery( '<img>' ); 95 $img.attr( 'src', file_url ); 96 $img.appendTo( $label ); 97 98 $label.appendTo( '#custom-post-avatar-list' ); 99 96 100 } else { 97 101 console.log( 'Error', up, file, response ); -
custom-post-avatar/trunk/custom-post-avatar.php
r2207485 r2207900 4 4 Plugin URI: https://wordpress.org/plugins/custom-post-avatar 5 5 Description: This Plugin gives you the possibility to replace your default avatar by a custom image on each post individually. 6 Version: 0.9. 46 Version: 0.9.5 7 7 Text Domain: custom-post-avatar 8 8 Author: Christian Hockenberger -
custom-post-avatar/trunk/readme.txt
r2207485 r2207900 5 5 Tested up to: 5.3 6 6 Requires PHP: 5.2.4 7 Stable tag: 0.9. 47 Stable tag: 0.9.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 36 36 37 37 38 = 0.9.5 = 39 40 * Bugfix: Visible avatar image after File upload in profile 41 38 42 = 0.9.4 = 39 43
Note: See TracChangeset
for help on using the changeset viewer.