Skip to:
Content

BuddyPress.org

Changeset 11986


Ignore:
Timestamp:
04/22/2018 04:11:19 PM (18 months 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

Location:
trunk/src/bp-templates/bp-nouveau/buddypress/members/single
Files:
3 edited

Legend:

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

    r11899 r11986  
    1515</nav><!-- .item-list-tabs -->
    1616
    17 <?php bp_nouveau_xprofile_hook( 'before', 'profile_content' ); ?>
     17<?php bp_nouveau_member_hook( 'before', 'profile_content' ); ?>
    1818
    1919<div class="profile <?php echo bp_current_action(); ?>">
     
    5959
    6060<?php
    61 bp_nouveau_xprofile_hook( 'after', 'profile_content' );
     61bp_nouveau_member_hook( 'after', 'profile_content' );
  • 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' );
  • 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.