Skip to:
Content

Changeset 6429


Ignore:
Timestamp:
10/17/12 20:33:12 (18 months ago)
Author:
r-a-y
Message:

bp-legacy:

  • Fix AJAX output for activity commenting.
  • In bp_legacy_theme_new_activity_comment(), removes old compatibility code copy-and-pasted from bp-default as this isn't necessary with the new theme compat layer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-legacy/buddypress-functions.php

    r6427 r6429  
    555555    $activities_template->activity->current_comment = $activities_template->activities[0]; 
    556556 
    557     $template = bp_locate_template( 'activity/comment.php', false, false ); 
    558  
    559     /** 
    560      * Backward compatibility. In older versions of BP, the markup was 
    561      * generated in the PHP instead of a template. This ensures that 
    562      * older themes (which are not children of bp-legacy and won't 
    563      * have the new template) will still work. 
    564      */ 
    565     if ( empty( $template ) ) 
    566         $template = BP_PLUGIN_DIR . '/bp-themes/bp-legacy/activity/comment.php'; 
    567  
    568     bp_get_template_part( $template ); 
     557    // get activity comment template part 
     558    bp_get_template_part( 'activity/comment' ); 
    569559 
    570560    unset( $activities_template ); 
Note: See TracChangeset for help on using the changeset viewer.