<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [1834] trunk: Backwards compatibility updates for 1.0.
3 built themes</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>1834</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-09-09 22:20:13 +0000 (Wed, 09 Sep 2009)</dd>
</dl>
<h3>Log Message</h3>
<pre>Backwards compatibility updates for 1.0.3 built themes</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivitytemplatetagsphp">trunk/bp-activity/bp-activity-templatetags.php</a></li>
<li><a href="#trunkbpactivitybpactivitywidgetsphp">trunk/bp-activity/bp-activity-widgets.php</a></li>
<li><a href="#trunkbpcoredeprecatedcssstructurecss">trunk/bp-core/deprecated/css/structure.css</a></li>
<li><a href="#trunkbpforumsphp">trunk/bp-forums.php</a></li>
<li><a href="#trunkbpfriendsbpfriendstemplatetagsphp">trunk/bp-friends/bp-friends-templatetags.php</a></li>
<li><a href="#trunkbpgroupsbpgroupstemplatetagsphp">trunk/bp-groups/bp-groups-templatetags.php</a></li>
<li><a href="#trunkbpgroupsdeprecatedbpgroupsdeprecatedphp">trunk/bp-groups/deprecated/bp-groups-deprecated.php</a></li>
<li><a href="#trunkbpwirebpwiretemplatetagsphp">trunk/bp-wire/bp-wire-templatetags.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivitytemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-templatetags.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-templatetags.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-activity/bp-activity-templatetags.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -344,7 +344,7 @@
</span><span class="cx">         function bp_get_activity_delete_link() {
</span><span class="cx">                 global $activities_template, $bp;
</span><span class="cx">
</span><del>-                return apply_filters( 'bp_get_activity_delete_link', '<a href="' . wp_nonce_url( $bp->root_domain . '/' . $bp->activity->slug . '/delete/' . $activities_template->activity->id, 'bp_activity_delete_link' ) . '" class="item-button delete confirm">' . __( 'Delete', 'buddypress' ) . '</a>' );
</del><ins>+                return apply_filters( 'bp_get_activity_delete_link', '<a href="' . wp_nonce_url( $bp->root_domain . '/' . $bp->activity->slug . '/delete/' . $activities_template->activity->id, 'bp_activity_delete_link' ) . '" class="item-button delete-activity confirm">' . __( 'Delete', 'buddypress' ) . '</a>' );
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx"> function bp_activity_filter_links( $args = false ) {
</span></span></pre></div>
<a id="trunkbpactivitybpactivitywidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-widgets.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-widgets.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-activity/bp-activity-widgets.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -24,26 +24,31 @@
</span><span class="cx">                  . $after_title; ?>
</span><span class="cx">         
</span><span class="cx">         <?php if ( bp_has_activities( 'type=sitewide&max=' . $instance['max_items'] . '&per_page=' . $instance['per_page'] ) ) : ?>
</span><del>-                <div class="pagination">
-                        <div class="pag-count" id="activity-count">
-                                <?php bp_activity_pagination_count() ?>
-                        </div>
</del><ins>+
+                <?php if ( !file_exists( WP_CONTENT_DIR . '/bp-themes' ) ) : ?>
+                        <div class="pagination">
+                                <div class="pag-count" id="activity-count">
+                                        <?php bp_activity_pagination_count() ?>
+                                </div>
</ins><span class="cx">                 
</span><del>-                        <div class="pagination-links" id="activity-pag">
-                                &nbsp; <?php bp_activity_pagination_links() ?>
</del><ins>+                                <div class="pagination-links" id="activity-pag">
+                                        &nbsp; <?php bp_activity_pagination_links() ?>
+                                </div>
</ins><span class="cx">                         </div>
</span><del>-                </div>
</del><span class="cx">                 
</span><del>-                <ul id="activity-filter-links">
-                        <?php bp_activity_filter_links() ?>
-                </ul>
</del><ins>+                        <ul id="activity-filter-links">
+                                <?php bp_activity_filter_links() ?>
+                        </ul>
+                <?php endif; ?>
</ins><span class="cx">                 
</span><span class="cx">                 <ul id="site-wide-stream" class="activity-list">
</span><span class="cx">                 <?php while ( bp_activities() ) : bp_the_activity(); ?>
</span><span class="cx">                         <li class="<?php bp_activity_css_class() ?>">
</span><del>-                                <div class="activity-avatar">
-                                        <?php bp_activity_avatar() ?>
-                                </div>
</del><ins>+                                <?php if ( !file_exists( WP_CONTENT_DIR . '/bp-themes' ) ) : ?>
+                                        <div class="activity-avatar">
+                                                <?php bp_activity_avatar() ?>
+                                        </div>
+                                <?php endif; ?>
</ins><span class="cx">                                 
</span><span class="cx">                                 <?php bp_activity_content() ?>
</span><span class="cx">                         </li>
</span></span></pre></div>
<a id="trunkbpcoredeprecatedcssstructurecss"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/deprecated/css/structure.css (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/deprecated/css/structure.css        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-core/deprecated/css/structure.css        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -61,6 +61,7 @@
</span><span class="cx"> * Main Column & Info Groups
</span><span class="cx"> */
</span><span class="cx">
</span><ins>+
</ins><span class="cx"> .main-column {
</span><span class="cx">         margin-left: 200px;
</span><span class="cx"> }
</span><span class="lines">@@ -71,27 +72,27 @@
</span><span class="cx">                         margin: 0 0 1.2em 0;
</span><span class="cx">                 }
</span><span class="cx">
</span><del>-        div.bp-widget {
</del><ins>+        div.info-group {
</ins><span class="cx">                 margin-bottom: 2em;
</span><span class="cx">         }        
</span><del>-                div.bp-widget h4 {
</del><ins>+                div.info-group h4 {
</ins><span class="cx">                         height: 30px;
</span><span class="cx">                         padding: 3px 10px;
</span><span class="cx">                         margin-bottom: 0.5em;
</span><span class="cx">                         position: relative;
</span><span class="cx">                 }
</span><del>-                        .left-menu div.bp-widget {
</del><ins>+                        .left-menu div.info-group {
</ins><span class="cx">                                 margin-top: 1.5em;
</span><span class="cx">                         }
</span><span class="cx">
</span><del>-                        div.bp-widget h4 span {
</del><ins>+                        div.info-group h4 a {
</ins><span class="cx">                                 position: absolute;
</span><span class="cx">                                 top: 0.31em;
</span><span class="cx">                                 right: 1em;
</span><span class="cx">                                 font-weight: normal;
</span><span class="cx">                         }
</span><span class="cx">
</span><del>-                        .left-menu div.bp-widget img.avatar {
</del><ins>+                        .left-menu div.info-group img.avatar {
</ins><span class="cx">                                 float: left;
</span><span class="cx">                                 margin-right: 1em;
</span><span class="cx">                         }
</span><span class="lines">@@ -129,7 +130,7 @@
</span><span class="cx">                 padding: 0.5em 0.7em;
</span><span class="cx">         }
</span><span class="cx">         
</span><del>-        div.bp-widget .pagination-links {
</del><ins>+        div.info-group .pagination-links {
</ins><span class="cx">                 margin: 0 0 5px 0;
</span><span class="cx">                 float: none;
</span><span class="cx">                 text-align: right;
</span></span></pre></div>
<a id="trunkbpforumsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-forums.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-forums.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-forums.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -131,8 +131,8 @@
</span><span class="cx">                 'topic_poster_name' => $bp->loggedin_user->fullname, // accept names
</span><span class="cx">                 'topic_last_poster' => $bp->loggedin_user->id, // accepts ids
</span><span class="cx">                 'topic_last_poster_name' => $bp->loggedin_user->fullname, // accept names
</span><del>-                'topic_start_time' => bb_current_time( 'mysql' ),
-                'topic_time' => bb_current_time( 'mysql' ),
</del><ins>+                'topic_start_time' => date( 'Y-m-d H:i:s' ),
+                'topic_time' => date( 'Y-m-d H:i:s' ),
</ins><span class="cx">                 'topic_open' => 1,
</span><span class="cx">                 'forum_id' => 0 // accepts ids or slugs
</span><span class="cx">         );
</span><span class="lines">@@ -246,7 +246,7 @@
</span><span class="cx">                 'post_id' => false,
</span><span class="cx">                 'topic_id' => false,
</span><span class="cx">                 'post_text' => '',
</span><del>-                'post_time' => bb_current_time( 'mysql' ),
</del><ins>+                'post_time' => date( 'Y-m-d H:i:s' ),
</ins><span class="cx">                 'poster_id' => $bp->loggedin_user->id, // accepts ids or names
</span><span class="cx">                 'poster_ip' => $_SERVER['REMOTE_ADDR'],
</span><span class="cx">                 'post_status' => 0, // use bb_delete_post() instead
</span></span></pre></div>
<a id="trunkbpfriendsbpfriendstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-friends/bp-friends-templatetags.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-friends/bp-friends-templatetags.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-friends/bp-friends-templatetags.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -406,8 +406,8 @@
</span><span class="cx">                 wp_cache_set( 'friends_friend_ids_' . $bp->displayed_user->id, $friend_ids, 'bp' );
</span><span class="cx">         }
</span><span class="cx"> ?>        
</span><del>-        <div class="bp-widget">
-                <h4><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?> (<?php echo BP_Friends_Friendship::total_friend_count( $bp->displayed_user->id ) ?>) <a href="<?php echo $bp->displayed_user->domain . $bp->friends->slug ?>"><?php _e('See All', 'buddypress') ?> &raquo;</a></h4>
</del><ins>+        <div class="info-group">
+                <h4><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?> (<?php echo BP_Friends_Friendship::total_friend_count( $bp->displayed_user->id ) ?>) <span><a href="<?php echo $bp->displayed_user->domain . $bp->friends->slug ?>"><?php _e('See All', 'buddypress') ?> &raquo;</a></span></h4>
</ins><span class="cx">                 
</span><span class="cx">                 <?php if ( $friend_ids ) { ?>
</span><span class="cx">                         <ul class="horiz-gallery">
</span></span></pre></div>
<a id="trunkbpgroupsbpgroupstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-templatetags.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-templatetags.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-groups/bp-groups-templatetags.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -708,57 +708,6 @@
</span><span class="cx">                 return apply_filters( 'bp_get_group_all_members_permalink', bp_get_group_permalink( $group ) . '/members' );
</span><span class="cx">         }
</span><span class="cx">
</span><del>-function bp_group_active_forum_topics( $total_topics = 3, $group = false ) {
-        global $groups_template, $forum_template;
-
-        if ( !$group )
-                $group =& $groups_template->group;
-
-        $forum_id = groups_get_groupmeta( $group->id, 'forum_id' );
-
-        if ( $forum_id && $forum_id != '' ) {
-                if ( function_exists( 'bp_forums_setup' ) ) {
-                        $latest_topics = bp_forums_get_forum_topics( $forum_id );
-                
-                        if ( $latest_topics ) { ?>
-                                <ul class="item-list" id="recent-forum-topics"><?php
-                                
-                                $counter = 0;
-                                
-                                foreach( $latest_topics as $topic ) {
-                                        $alt = ( $counter % 2 == 1 ) ? ' class="alt"' : '';
-                                        $forum_template->topic = (object)$topic; ?>
-                                        
-                                        <li<?php echo $alt ?>>
-                                                <div class="avatar">
-                                                        <?php bp_the_topic_poster_avatar() ?>
-                                                </div>
-
-                                                <a href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>"><?php bp_the_topic_title() ?></a>
-                                                <span class="small">- <?php bp_the_topic_total_post_count() ?> </span>
-                                                <p><span class="activity"><?php echo sprintf( __( 'updated %s ago', 'buddypress' ), bp_the_topic_time_since_last_post( false ) ) ?></span></p>
-                                
-                                                <div class="latest-post">
-                                                        <?php _e( 'Latest by', 'buddypress' ) ?> <?php bp_the_topic_last_poster_name() ?>:
-                                                        <?php bp_the_topic_latest_post_excerpt() ?>
-                                                </div>
-                                        </li>
-                                        <?php $counter++ ?>
-                                        
-                                <?php } ?>
-                                </ul>
-                                <?php
-                        } else {
-                        ?>
-                                <div id="message" class="info">
-                                        <p><?php _e( 'There are no active forum topics for this group', 'buddypress' ) ?></p>
-                                </div>
-                        <?php
-                        }
-                }
-        }
-}
-
</del><span class="cx"> function bp_group_search_form() {
</span><span class="cx">         global $groups_template, $bp;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpgroupsdeprecatedbpgroupsdeprecatedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/deprecated/bp-groups-deprecated.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/deprecated/bp-groups-deprecated.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-groups/deprecated/bp-groups-deprecated.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -230,8 +230,8 @@
</span><span class="cx">         }
</span><span class="cx">         
</span><span class="cx"> ?>        
</span><del>-        <div class="bp-widget">
-                <h4><?php bp_word_or_name( __( "My Groups", 'buddypress' ), __( "%s's Groups", 'buddypress' ) ) ?> (<?php echo BP_Groups_Member::total_group_count() ?>) <a href="<?php echo $bp->displayed_user->domain . $bp->groups->slug ?>"><?php _e('See All', 'buddypress') ?> &raquo;</a></h4>
</del><ins>+        <div class="info-group">
+                <h4><?php bp_word_or_name( __( "My Groups", 'buddypress' ), __( "%s's Groups", 'buddypress' ) ) ?> (<?php echo BP_Groups_Member::total_group_count() ?>) <span><a href="<?php echo $bp->displayed_user->domain . $bp->groups->slug ?>"><?php _e('See All', 'buddypress') ?> &raquo;</a></span></h4>
</ins><span class="cx">                 <?php if ( $group_ids ) { ?>
</span><span class="cx">                         <ul class="horiz-gallery">
</span><span class="cx">                         <?php
</span><span class="lines">@@ -241,7 +241,7 @@
</span><span class="cx">                                         wp_cache_set( 'groups_group_nouserdata_' . $group_ids[$i], $group, 'bp' );
</span><span class="cx">                                 }
</span><span class="cx">                         ?>                                <li>
</span><del>-                                        <a href="<?php echo bp_get_group_permalink( $group ) ?>"><img src="<?php echo attribute_escape( $group->avatar_thumb ); ?>" class="avatar" alt="<?php _e( 'Group Avatar', 'buddypress' ) ?>" /></a>
</del><ins>+                                        <a href="<?php echo bp_get_group_permalink( $group ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $group->id, 'object' => 'group', 'type' => 'thumb' ) ) ?></a>
</ins><span class="cx">                                         <h5><a href="<?php echo bp_get_group_permalink( $group ) ?>"><?php echo attribute_escape( $group->name ) ?></a></h5>
</span><span class="cx">                                 </li>
</span><span class="cx">                         <?php } ?>
</span><span class="lines">@@ -256,6 +256,59 @@
</span><span class="cx"> <?php
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+/* DEPRECATED - use bp_has_topics() template loop */
+function bp_group_active_forum_topics( $total_topics = 3, $group = false ) {
+        global $groups_template, $forum_template;
+
+        if ( !$group )
+                $group =& $groups_template->group;
+                
+        $forum_id = groups_get_groupmeta( $group->id, 'forum_id' );
+
+        if ( $forum_id && $forum_id != '' ) {
+                if ( function_exists( 'bp_forums_setup' ) ) {
+                        $latest_topics = bp_forums_get_forum_topics( array( 'forum_id' => $forum_id ) );
+                
+                        if ( $latest_topics ) { ?>
+                                <ul class="item-list" id="recent-forum-topics"><?php
+                                
+                                $counter = 0;
+                                
+                                foreach( $latest_topics as $topic ) {
+                                        $alt = ( $counter % 2 == 1 ) ? ' class="alt"' : '';
+                                        $forum_template->topic = (object)$topic; ?>
+                                        
+                                        <li<?php echo $alt ?>>
+                                                <div class="avatar">
+                                                        <?php bp_the_topic_poster_avatar() ?>
+                                                </div>
+
+                                                <a href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>"><?php bp_the_topic_title() ?></a>
+                                                <span class="small">- <?php bp_the_topic_total_post_count() ?> </span>
+                                                <p><span class="activity"><?php echo sprintf( __( 'updated %s ago', 'buddypress' ), bp_the_topic_time_since_last_post( false ) ) ?></span></p>
+                                
+                                                <div class="latest-post">
+                                                        <?php _e( 'Latest by', 'buddypress' ) ?> <?php bp_the_topic_last_poster_name() ?>:
+                                                        <?php bp_the_topic_latest_post_excerpt() ?>
+                                                </div>
+                                        </li>
+                                        <?php $counter++ ?>
+                                        
+                                <?php } ?>
+                                </ul>
+                                <?php
+                        } else {
+                        ?>
+                                <div id="message" class="info">
+                                        <p><?php _e( 'There are no active forum topics for this group', 'buddypress' ) ?></p>
+                                </div>
+                        <?php
+                        }
+                }
+        }
+}
+
+
</ins><span class="cx"> /* DEPRECATED - use group invite template loop (see groups/create.php in skeleton BuddyPress theme) */
</span><span class="cx"> function bp_group_send_invite_form( $group = false ) {
</span><span class="cx">         global $bp, $groups_template, $invites;
</span><span class="lines">@@ -478,7 +531,7 @@
</span><span class="cx">                 <?php case 'group-avatar': ?>
</span><span class="cx">                         <?php if ( bp_are_previous_group_creation_steps_complete( 'group-avatar' ) ) { ?>
</span><span class="cx">                                 <div class="left-menu">
</span><del>-                                        <?php bp_group_current_avatar() ?>
</del><ins>+                                        <?php bp_new_group_avatar() ?>
</ins><span class="cx">                                 </div>
</span><span class="cx">                                 
</span><span class="cx">                                 <div class="main-column">
</span></span></pre></div>
<a id="trunkbpwirebpwiretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-wire/bp-wire-templatetags.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-wire/bp-wire-templatetags.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-wire/bp-wire-templatetags.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -162,7 +162,7 @@
</span><span class="cx">                 return apply_filters( 'bp_get_wire_title', $bp_wire_header );
</span><span class="cx">         }
</span><span class="cx">         
</span><del>-function bp_wire_item_id( $deprecated = true ) {
</del><ins>+function bp_wire_item_id( $deprecated = false ) {
</ins><span class="cx">         global $bp_item_id;
</span><span class="cx">         
</span><span class="cx">         if ( $deprecated )
</span><span class="lines">@@ -362,9 +362,9 @@
</span><span class="cx">
</span><span class="cx">                 if ( ( $wire_posts_template->wire_post->user_id == $bp->loggedin_user->id ) || $bp->is_item_admin || is_site_admin() ) {
</span><span class="cx">                         if ( $bp->wire->slug == $bp->current_component || $bp->profile->slug == $bp->current_component ) {
</span><del>-                                return apply_filters( 'bp_get_wire_delete_link', '<a class="item-button delete confirm" href="' . wp_nonce_url( $bp->displayed_user->domain . $bp->wire->slug . '/delete/' . $wire_posts_template->wire_post->id, 'bp_wire_delete_link' ) . '">' . __('Delete', 'buddypress') . '</a>' );
</del><ins>+                                return apply_filters( 'bp_get_wire_delete_link', '<a class="item-button delete-post confirm" href="' . wp_nonce_url( $bp->displayed_user->domain . $bp->wire->slug . '/delete/' . $wire_posts_template->wire_post->id, 'bp_wire_delete_link' ) . '">' . __('Delete', 'buddypress') . '</a>' );
</ins><span class="cx">                         } else {
</span><del>-                                return apply_filters( 'bp_get_wire_delete_link', '<a class="item-button delete confirm" href="' . wp_nonce_url( site_url( $bp->{$bp->current_component}->slug . '/' . $uri . '/wire/delete/' . $wire_posts_template->wire_post->id ), 'bp_wire_delete_link' ) . '">' . __('Delete', 'buddypress') . '</a>' );
</del><ins>+                                return apply_filters( 'bp_get_wire_delete_link', '<a class="item-button delete-post confirm" href="' . wp_nonce_url( site_url( $bp->{$bp->current_component}->slug . '/' . $uri . '/wire/delete/' . $wire_posts_template->wire_post->id ), 'bp_wire_delete_link' ) . '">' . __('Delete', 'buddypress') . '</a>' );
</ins><span class="cx">                         }
</span><span class="cx">                 }
</span><span class="cx">         }
</span></span></pre>
</div>
</div>
</body>
</html>