Skip to:
Content

BuddyPress.org

Changeset 8155


Ignore:
Timestamp:
03/25/2014 05:48:48 PM (8 years ago)
Author:
boonebgorges
Message:

Don't reproduce the activity-form-loop on an AJAX request

Fixes #5329

Props imath

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress/activity/activity-loop.php

    r6284 r8155  
    4747<?php do_action( 'bp_after_activity_loop' ); ?>
    4848
    49 <form action="" name="activity-loop-form" id="activity-loop-form" method="post">
     49<?php if ( empty( $_POST['page'] ) ) : ?>
    5050
    51     <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
     51    <form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    5252
    53 </form>
     53        <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
     54
     55    </form>
     56
     57<?php endif; ?>
  • trunk/bp-themes/bp-default/activity/activity-loop.php

    r4804 r8155  
    6060<?php do_action( 'bp_after_activity_loop' ); ?>
    6161
    62 <form action="" name="activity-loop-form" id="activity-loop-form" method="post">
     62<?php if ( empty( $_POST['page'] ) ) : ?>
    6363
    64     <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
     64    <form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    6565
    66 </form>
     66        <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
     67
     68    </form>
     69
     70<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.