[buddypress-trac] [BuddyPress Trac] #7679: JS error in wp-admin "Extended Profile" blocking upload of profile photo

buddypress-trac noreply at wordpress.org
Thu Feb 1 20:24:52 UTC 2018


#7679: JS error in wp-admin "Extended Profile" blocking upload of profile photo
----------------------------+----------------------
 Reporter:  DJPaul          |       Owner:  slaFFik
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.0
Component:  Administration  |     Version:
 Severity:  major           |  Resolution:
 Keywords:                  |
----------------------------+----------------------

Comment (by boonebgorges):

 Broken in [11835].

 In wp-admin, the Attachments module always tries to load the "default"
 templates, skipping the template hierarchy. I don't recall exactly why
 this was - I guess because wp-admin is not a themed area. See
 https://github.com/buddypress/BuddyPress/blob/f078caa1fa5a93e9bdb074f3e914633620858436/src
 /bp-core/bp-core-attachments.php#L928

 The simple answer is to change 'bp-legacy' to 'shared'. But this alone
 doesn't work, because the file /src/bp-
 templates/shared/buddypress/assets/_attachments/avatars/index.php contains
 a reference to a `bp_nouveau` function. I think the right answer is to
 revert to the bp-legacy version of avatars/index.php in the 'shared'
 directory, and move the current avatars/index.php to bp-nouveau. This
 strategy needs sign-off from @hnla or @DJPaul, who probably understand
 this better than I do.

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


More information about the buddypress-trac mailing list