Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/22/2018 04:11:19 PM (4 years ago)
Author:
djpaul
Message:

Templates, Nouveau: call member-component filter convenience function instead of xprofile-component's.

The root member profile templates can be loaded with xprofile disabled -- as well as enabled -- so those templates cannot call xprofile-component specific functions.

Fixes #7761

Props cshinkin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/change-avatar.php

    r11899 r11986  
    99<h2 class="screen-heading"><?php _e( 'Change Profile Photo', 'buddypress' ); ?></h2>
    1010
    11 <?php bp_nouveau_xprofile_hook( 'before', 'avatar_upload_content' ); ?>
     11<?php bp_nouveau_member_hook( 'before', 'avatar_upload_content' ); ?>
    1212
    1313<?php if ( ! (int) bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>
     
    7979
    8080<?php
    81 bp_nouveau_xprofile_hook( 'after', 'avatar_upload_content' );
     81bp_nouveau_member_hook( 'after', 'avatar_upload_content' );
Note: See TracChangeset for help on using the changeset viewer.