[buddypress-trac] [BuddyPress Trac] #5202: Create a new Group Avatar outside of the Group via PHP

buddypress-trac noreply at wordpress.org
Thu Sep 17 12:01:55 UTC 2015


#5202: Create a new Group Avatar outside of the Group via PHP
-------------------------------------+------------------
 Reporter:  svenl77                  |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  2.4
Component:  Component - Groups       |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by svenl77):

 Hi @imath, I use your patch in a plugin with a prefix to create group
 avatars from featured image until your patch gets into core ;)

 I run into an issue with file_exists.

 I needed to remove the
 {{{
 ! file_exists( $r['image'] )
 }}}



 {{{
 Line 1269
  if ( empty( $r['item_id'] ) || ! file_exists( $r['image'] ) || !
 @getimagesize( $r['image'] ) ) {

 change to
 if ( empty( $r['item_id'] ) || ! @getimagesize( $r['image'] ) ) {
 }}}


 after I removed this check all is working.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5202#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list