<!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">                                         <?php do_action( 'bp_before_blog_post' ) ?>
</span><span class="cx">
</span><del>-                                        <div class="post" id="post-<?php the_ID(); ?>">
</del><ins>+                                        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
</ins><span class="cx">
</span><span class="cx">                                                 <div class="author-box">
</span><span class="cx">                                                         <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
</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">                                         <?php do_action( 'bp_before_blog_post' ) ?>
</span><span class="cx">
</span><del>-                                        <?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?>
</del><ins>+                                        <?php $attachment_link = wp_get_attachment_link($post->ID, array(450, 800)); // This also populates the iconsize for the next line ?>
</ins><span class="cx">                                         <?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?>
</span><span class="cx">
</span><del>-                                        <div class="post" id="post-<?php the_ID(); ?>">
</del><ins>+                                        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
</ins><span class="cx">
</span><span class="cx">                                                 <h2 class="posttitle"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &rarr; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</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">                         <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />
</span><span class="cx">                 <?php endif; ?>
</span><span class="cx">
</span><del>-                <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
-                <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />
-
</del><span class="cx">                 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
</span><span class="cx">
</span><span class="cx">                 <?php wp_head(); ?>
</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">                                         <?php do_action( 'bp_before_blog_post' ) ?>
</span><span class="cx">
</span><del>-                                        <div class="post" id="post-<?php the_ID(); ?>">
</del><ins>+                                        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
</ins><span class="cx">
</span><span class="cx">                                                 <div class="author-box">
</span><span class="cx">                                                         <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
</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">                         <h2 class="pagetitle"><?php _e( 'Links', 'buddypress' ) ?></h2>
</span><span class="cx">
</span><span class="cx">                         <ul id="links-list">
</span><del>-                                <?php get_links_list(); ?>
</del><ins>+                                <?php wp_list_bookmarks(); ?>
</ins><span class="cx">                         </ul>
</span><span class="cx">
</span><span class="cx">                 </div>
</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">                                 <h2 class="pagetitle"><?php the_title(); ?></h2>
</span><span class="cx">
</span><del>-                                <div class="post" id="post-<?php the_ID(); ?>">
</del><ins>+                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
</ins><span class="cx">
</span><span class="cx">                                         <div class="entry">
</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">                                         <?php do_action( 'bp_before_blog_post' ) ?>
</span><span class="cx">
</span><del>-                                        <div class="post" id="post-<?php the_ID(); ?>">
</del><ins>+                                        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
</ins><span class="cx">
</span><span class="cx">                                                 <div class="author-box">
</span><del>-                                                        <?php echo get_avatar( get_the_author_email(), '50' ); ?>
</del><ins>+                                                        <?php echo get_avatar( get_the_author_meta( 'email' ), '50' ); ?>
</ins><span class="cx">                                                         <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
</span><span class="cx">                                                 </div>
</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"> <?php do_action( 'bp_before_blog_search_form' ) ?>
</span><span class="cx">
</span><del>-<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
</del><ins>+<form method="get" id="searchform" action="<?php echo home_url() ?>/">
</ins><span class="cx">         <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
</span><span class="cx">         <input type="submit" id="searchsubmit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
</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">                                 </div>
</span><span class="cx">
</span><del>-                                <div class="post" id="post-<?php the_ID(); ?>">
</del><ins>+                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
</ins><span class="cx">
</span><span class="cx">                                         <div class="author-box">
</span><span class="cx">                                                 <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
</span></span></pre>
</div>
</div>
</body>
</html>