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-cover-image.php

    r11899 r11986  
    1010<h2 class="screen-heading"><?php _e( 'Change Cover Image', 'buddypress' ); ?></h2>
    1111
    12 <?php bp_nouveau_xprofile_hook( 'before', 'edit_cover_image' ); ?>
     12<?php bp_nouveau_member_hook( 'before', 'edit_cover_image' ); ?>
    1313
    1414<p class="info bp-feedback">
     
    2121bp_attachments_get_template_part( 'cover-images/index' );
    2222
    23 bp_nouveau_xprofile_hook( 'after', 'edit_cover_image' );
     23bp_nouveau_member_hook( 'after', 'edit_cover_image' );
Note: See TracChangeset for help on using the changeset viewer.