<!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] [3386] trunk/bp-themes/bp-default:
  Remove used of deprecated theme functions in bp-default</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>3386</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2010-11-10 21:35:54 +0000 (Wed, 10 Nov 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove used of deprecated theme functions in bp-default</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpthemesbpdefaultarchivephp">trunk/bp-themes/bp-default/archive.php</a></li>
<li><a href="#trunkbpthemesbpdefaultattachmentphp">trunk/bp-themes/bp-default/attachment.php</a></li>
<li><a href="#trunkbpthemesbpdefaultfunctionsphp">trunk/bp-themes/bp-default/functions.php</a></li>
<li><a href="#trunkbpthemesbpdefaultheaderphp">trunk/bp-themes/bp-default/header.php</a></li>
<li><a href="#trunkbpthemesbpdefaultindexphp">trunk/bp-themes/bp-default/index.php</a></li>
<li><a href="#trunkbpthemesbpdefaultlinksphp">trunk/bp-themes/bp-default/links.php</a></li>
<li><a href="#trunkbpthemesbpdefaultpagephp">trunk/bp-themes/bp-default/page.php</a></li>
<li><a href="#trunkbpthemesbpdefaultsearchphp">trunk/bp-themes/bp-default/search.php</a></li>
<li><a href="#trunkbpthemesbpdefaultsearchformphp">trunk/bp-themes/bp-default/searchform.php</a></li>
<li><a href="#trunkbpthemesbpdefaultsinglephp">trunk/bp-themes/bp-default/single.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpthemesbpdefaultarchivephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/archive.php (3385 => 3386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/archive.php        2010-11-10 13:13:36 UTC (rev 3385)
+++ trunk/bp-themes/bp-default/archive.php        2010-11-10 21:35:54 UTC (rev 3386)
</span><span class="lines">@@ -22,7 +22,7 @@
</span><span class="cx"> 
</span><span class="cx">                                         &lt;?php do_action( 'bp_before_blog_post' ) ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
</del><ins>+                                        &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</ins><span class="cx"> 
</span><span class="cx">                                                 &lt;div class=&quot;author-box&quot;&gt;
</span><span class="cx">                                                         &lt;?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultattachmentphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/attachment.php (3385 => 3386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/attachment.php        2010-11-10 13:13:36 UTC (rev 3385)
+++ trunk/bp-themes/bp-default/attachment.php        2010-11-10 21:35:54 UTC (rev 3386)
</span><span class="lines">@@ -12,10 +12,10 @@
</span><span class="cx"> 
</span><span class="cx">                                         &lt;?php do_action( 'bp_before_blog_post' ) ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php $attachment_link = get_the_attachment_link($post-&gt;ID, true, array(450, 800)); // This also populates the iconsize for the next line ?&gt;
</del><ins>+                                        &lt;?php $attachment_link = wp_get_attachment_link($post-&gt;ID, array(450, 800)); // This also populates the iconsize for the next line ?&gt;
</ins><span class="cx">                                         &lt;?php $_post = &amp;get_post($post-&gt;ID); $classname = ($_post-&gt;iconsize[0] &lt;= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
</del><ins>+                                        &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</ins><span class="cx"> 
</span><span class="cx">                                                 &lt;h2 class=&quot;posttitle&quot;&gt;&lt;a href=&quot;&lt;?php echo get_permalink($post-&gt;post_parent); ?&gt;&quot; rev=&quot;attachment&quot;&gt;&lt;?php echo get_the_title($post-&gt;post_parent); ?&gt;&lt;/a&gt; &amp;rarr; &lt;a href=&quot;&lt;?php echo get_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link: &lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/functions.php (3385 => 3386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/functions.php        2010-11-10 13:13:36 UTC (rev 3385)
+++ trunk/bp-themes/bp-default/functions.php        2010-11-10 21:35:54 UTC (rev 3386)
</span><span class="lines">@@ -3,6 +3,8 @@
</span><span class="cx"> if ( !class_exists( 'BP_Core_User' ) )
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><ins>+add_theme_support( 'automatic-feed-links' );
+
</ins><span class="cx"> // Register the widget columns
</span><span class="cx"> register_sidebars( 1,
</span><span class="cx">         array(
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/header.php (3385 => 3386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/header.php        2010-11-10 13:13:36 UTC (rev 3385)
+++ trunk/bp-themes/bp-default/header.php        2010-11-10 21:35:54 UTC (rev 3386)
</span><span class="lines">@@ -26,9 +26,6 @@
</span><span class="cx">                         &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; | &lt;?php bp_current_group_name() ?&gt; | &lt;?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?&gt;&quot; href=&quot;&lt;?php bp_group_activity_feed_link() ?&gt;&quot; /&gt;
</span><span class="cx">                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-                &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; &lt;?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?&gt;&quot; href=&quot;&lt;?php bloginfo('rss2_url'); ?&gt;&quot; /&gt;
-                &lt;link rel=&quot;alternate&quot; type=&quot;application/atom+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; &lt;?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?&gt;&quot; href=&quot;&lt;?php bloginfo('atom_url'); ?&gt;&quot; /&gt;
-
</del><span class="cx">                 &lt;link rel=&quot;pingback&quot; href=&quot;&lt;?php bloginfo('pingback_url'); ?&gt;&quot; /&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php wp_head(); ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultindexphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/index.php (3385 => 3386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/index.php        2010-11-10 13:13:36 UTC (rev 3385)
+++ trunk/bp-themes/bp-default/index.php        2010-11-10 21:35:54 UTC (rev 3386)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx"> 
</span><span class="cx">                                         &lt;?php do_action( 'bp_before_blog_post' ) ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
</del><ins>+                                        &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</ins><span class="cx"> 
</span><span class="cx">                                                 &lt;div class=&quot;author-box&quot;&gt;
</span><span class="cx">                                                         &lt;?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultlinksphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/links.php (3385 => 3386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/links.php        2010-11-10 13:13:36 UTC (rev 3385)
+++ trunk/bp-themes/bp-default/links.php        2010-11-10 21:35:54 UTC (rev 3386)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">                         &lt;h2 class=&quot;pagetitle&quot;&gt;&lt;?php _e( 'Links', 'buddypress' ) ?&gt;&lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;ul id=&quot;links-list&quot;&gt;
</span><del>-                                &lt;?php get_links_list(); ?&gt;
</del><ins>+                                &lt;?php wp_list_bookmarks(); ?&gt;
</ins><span class="cx">                         &lt;/ul&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;/div&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultpagephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/page.php (3385 => 3386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/page.php        2010-11-10 13:13:36 UTC (rev 3385)
+++ trunk/bp-themes/bp-default/page.php        2010-11-10 21:35:54 UTC (rev 3386)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx"> 
</span><span class="cx">                                 &lt;h2 class=&quot;pagetitle&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
</span><span class="cx"> 
</span><del>-                                &lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
</del><ins>+                                &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</ins><span class="cx"> 
</span><span class="cx">                                         &lt;div class=&quot;entry&quot;&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultsearchphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/search.php (3385 => 3386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/search.php        2010-11-10 13:13:36 UTC (rev 3385)
+++ trunk/bp-themes/bp-default/search.php        2010-11-10 21:35:54 UTC (rev 3386)
</span><span class="lines">@@ -22,10 +22,10 @@
</span><span class="cx"> 
</span><span class="cx">                                         &lt;?php do_action( 'bp_before_blog_post' ) ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
</del><ins>+                                        &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</ins><span class="cx"> 
</span><span class="cx">                                                 &lt;div class=&quot;author-box&quot;&gt;
</span><del>-                                                        &lt;?php echo get_avatar( get_the_author_email(), '50' ); ?&gt;
</del><ins>+                                                        &lt;?php echo get_avatar( get_the_author_meta( 'email' ), '50' ); ?&gt;
</ins><span class="cx">                                                         &lt;p&gt;&lt;?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post-&gt;post_author ) ) ?&gt;&lt;/p&gt;
</span><span class="cx">                                                 &lt;/div&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultsearchformphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/searchform.php (3385 => 3386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/searchform.php        2010-11-10 13:13:36 UTC (rev 3385)
+++ trunk/bp-themes/bp-default/searchform.php        2010-11-10 21:35:54 UTC (rev 3386)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> &lt;?php do_action( 'bp_before_blog_search_form' ) ?&gt;
</span><span class="cx"> 
</span><del>-&lt;form method=&quot;get&quot; id=&quot;searchform&quot; action=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot;&gt;
</del><ins>+&lt;form method=&quot;get&quot; id=&quot;searchform&quot; action=&quot;&lt;?php echo home_url() ?&gt;/&quot;&gt;
</ins><span class="cx">         &lt;input type=&quot;text&quot; value=&quot;&lt;?php the_search_query(); ?&gt;&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;
</span><span class="cx">         &lt;input type=&quot;submit&quot; id=&quot;searchsubmit&quot; value=&quot;&lt;?php _e( 'Search', 'buddypress' ) ?&gt;&quot; /&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultsinglephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/single.php (3385 => 3386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/single.php        2010-11-10 13:13:36 UTC (rev 3385)
+++ trunk/bp-themes/bp-default/single.php        2010-11-10 21:35:54 UTC (rev 3386)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx"> 
</span><span class="cx">                                 &lt;/div&gt;
</span><span class="cx"> 
</span><del>-                                &lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
</del><ins>+                                &lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</ins><span class="cx"> 
</span><span class="cx">                                         &lt;div class=&quot;author-box&quot;&gt;
</span><span class="cx">                                                 &lt;?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?&gt;
</span></span></pre>
</div>
</div>

</body>
</html>