Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/01/2018 10:26:00 PM (4 years ago)
Author:
djpaul
Message:

Templates: swap shared _attachments/avatars/index.php with Legacy version; fix path in wp-admin.

The Nouveau template was previously used, and included a call to a Nouveau-only function, which I missed in r11835.
The Nouveau pack now has a copy of its Nouveau template again.

Also changes a patch in bp_attachments_get_template_part() to support the changed location for this template asset.
This is used for the "Upload Avatar" screens in wp-admin Users > Edit.

Props boonebgorges, hnla.

Fixes #7679 and #7675

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-attachments.php

    r11819 r11839  
    926926    // Load the attachment template in WP Administration screens.
    927927    if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
    928         $attachment_admin_template_part = buddypress()->themes_dir . '/bp-legacy/buddypress/' . $attachment_template_part . '.php';
     928        $attachment_admin_template_part = buddypress()->themes_dir . '/shared/buddypress/' . $attachment_template_part . '.php';
    929929
    930930        // Check whether the template part exists.
Note: See TracChangeset for help on using the changeset viewer.