Changeset 6309 for trunk/bp-activity/bp-activity-admin.php
- Timestamp:
- 09/06/2012 03:48:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-admin.php
r6293 r6309 612 612 613 613 <?php else : ?> 614 <p><?php printf( __( 'No activity found with this ID. <a href="%s">Go back and try again</a>.', 'buddypress' ), network_admin_url( 'admin.php?page=bp-activity') ); ?></p>614 <p><?php printf( __( 'No activity found with this ID. <a href="%s">Go back and try again</a>.', 'buddypress' ), esc_url( bp_get_admin_url( 'admin.php?page=bp-activity' ) ) ); ?></p> 615 615 <?php endif; ?> 616 616 … … 875 875 <a href="#" class="save button-primary alignright"><?php _e( 'Reply', 'buddypress' ); ?></a> 876 876 877 <img class="waiting" style="display:none;" src="<?php echo esc_url( network_admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />877 <img class="waiting" style="display:none;" src="<?php echo esc_url( bp_get_admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 878 878 <span class="error" style="display:none;"></span> 879 879 <br class="clear" /> … … 1266 1266 1267 1267 // Build actions URLs 1268 $base_url = network_admin_url( 'admin.php?page=bp-activity&aid=' . $item['id'] );1268 $base_url = bp_get_admin_url( 'admin.php?page=bp-activity&aid=' . $item['id'] ); 1269 1269 $spam_nonce = esc_html( '_wpnonce=' . wp_create_nonce( 'spam-activity_' . $item['id'] ) ); 1270 1270 … … 1325 1325 if ( empty( $item['item_id'] ) || ! in_array( $item['type'], apply_filters( 'bp_activity_admin_root_activity_types', array( 'activity_comment' ), $item ) ) ) { 1326 1326 $comment_count = !empty( $item['children'] ) ? bp_activity_recurse_comment_count( (object) $item ) : 0; 1327 $root_activity_url = network_admin_url( 'admin.php?page=bp-activity&aid=' . $item['id'] );1327 $root_activity_url = bp_get_admin_url( 'admin.php?page=bp-activity&aid=' . $item['id'] ); 1328 1328 1329 1329 // If the activity has comments, display a link to the activity's permalink, with its comment count in a speech bubble 1330 1330 if ( $comment_count ) { 1331 1331 $title_attr = sprintf( _n( '%s related activity', '%s related activities', $comment_count, 'buddypress' ), number_format_i18n( $comment_count ) ); 1332 printf( '<a href="%1$s" title="%2$s" class="post-com-count"><span class="comment-count">%3$s</span></a>', esc_ attr( $root_activity_url ), esc_attr( $title_attr ), number_format_i18n( $comment_count ) );1332 printf( '<a href="%1$s" title="%2$s" class="post-com-count"><span class="comment-count">%3$s</span></a>', esc_url( $root_activity_url ), esc_attr( $title_attr ), number_format_i18n( $comment_count ) ); 1333 1333 } 1334 1334
Note: See TracChangeset
for help on using the changeset viewer.