<!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" />
<title>[BuddyPress][6583] trunk/bp-core: Delete empty update file, deprecate bp_db_update_stuff(), and clean up deprecated phpdoc blocks.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://buddypress.trac.wordpress.org/changeset/6583">6583</a></dd>
<dt>Author</dt> <dd>johnjamesjacoby</dd>
<dt>Date</dt> <dd>2012-12-10 08:47:07 +0000 (Mon, 10 Dec 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Delete empty update file, deprecate bp_db_update_stuff(), and clean up deprecated phpdoc blocks.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpcoreadminbpcoreschemaphp">trunk/bp-core/admin/bp-core-schema.php</a></li>
<li><a href="#trunkbpcoredeprecated15php">trunk/bp-core/deprecated/1.5.php</a></li>
<li><a href="#trunkbpcoredeprecated16php">trunk/bp-core/deprecated/1.6.php</a></li>
<li><a href="#trunkbpcoredeprecated17php">trunk/bp-core/deprecated/1.7.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkbpcoreadminbpcoreupdatephp">trunk/bp-core/admin/bp-core-update.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpcoreadminbpcoreschemaphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/admin/bp-core-schema.php (6582 => 6583)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/admin/bp-core-schema.php        2012-12-10 08:36:33 UTC (rev 6582)
+++ trunk/bp-core/admin/bp-core-schema.php        2012-12-10 08:47:07 UTC (rev 6583)
</span><span class="lines">@@ -8,11 +8,8 @@
</span><span class="cx"> 
</span><span class="cx">         require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
</span><span class="cx"> 
</span><del>-        /* BuddyPress component DB schema */
-        if ( !empty($wpdb-&gt;charset) )
-                return &quot;DEFAULT CHARACTER SET $wpdb-&gt;charset&quot;;
-
-        return '';
</del><ins>+        // BuddyPress component DB schema
+        return !empty( $wpdb-&gt;charset ) ? &quot;DEFAULT CHARACTER SET {$wpdb-&gt;charset}&quot; : '';
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_core_install( $active_components = false ) {
</span><span class="lines">@@ -243,12 +240,12 @@
</span><span class="cx">         $bp_prefix       = bp_core_get_table_prefix();
</span><span class="cx"> 
</span><span class="cx">         // These values should only be updated if they are not already present
</span><del>-        if ( !$base_group_name = bp_get_option( 'bp-xprofile-base-group-name' ) ) {
-                bp_update_option( 'bp-xprofile-base-group-name', _x( 'Base', 'First XProfile group name', 'buddypress' ) );
</del><ins>+        if ( ! bp_get_option( 'bp-xprofile-base-group-name' ) ) {
+                bp_update_option( 'bp-xprofile-base-group-name', _x( 'General', 'First field-group name', 'buddypress' ) );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( !$fullname_field_name = bp_get_option( 'bp-xprofile-fullname-field-name' ) ) {
-                bp_update_option( 'bp-xprofile-fullname-field-name', _x( 'Name', 'XProfile fullname field name', 'buddypress' ) );
</del><ins>+        if ( ! bp_get_option( 'bp-xprofile-fullname-field-name' ) ) {
+                bp_update_option( 'bp-xprofile-fullname-field-name', _x( 'Display Name', 'Display name field', 'buddypress' ) );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         $sql[] = &quot;CREATE TABLE {$bp_prefix}bp_xprofile_groups (
</span><span class="lines">@@ -339,50 +336,3 @@
</span><span class="cx"> 
</span><span class="cx">         dbDelta( $sql );
</span><span class="cx"> }
</span><del>-
-/**
- * I don't appear to be used anymore, but I'm here anyways. I was originally
- * used in olden days to update pre-1.1 schemas, but that was before we had
- * a legitimate update process. Keep me around just incase.
- *
- * @global WPDB $wpdb
- * @global BuddyPress $bp
- */
-function bp_update_db_stuff() {
-        global $wpdb, $bp;
-
-        $bp_prefix = bp_core_get_table_prefix();
-
-        // Rename the old user activity cached table if needed.
-        if ( $wpdb-&gt;get_var( &quot;SHOW TABLES LIKE '%{$bp_prefix}bp_activity_user_activity_cached%'&quot; ) )
-                $wpdb-&gt;query( &quot;RENAME TABLE {$bp_prefix}bp_activity_user_activity_cached TO {$bp-&gt;activity-&gt;table_name}&quot; );
-
-        // Rename fields from pre BP 1.2
-        if ( $wpdb-&gt;get_var( &quot;SHOW TABLES LIKE '%{$bp-&gt;activity-&gt;table_name}%'&quot; ) ) {
-                if ( $wpdb-&gt;get_var( &quot;SHOW COLUMNS FROM {$bp-&gt;activity-&gt;table_name} LIKE 'component_action'&quot; ) ) {
-                        $wpdb-&gt;query( &quot;ALTER TABLE {$bp-&gt;activity-&gt;table_name} CHANGE component_action type varchar(75) NOT NULL&quot; );
-                }
-
-                if ( $wpdb-&gt;get_var( &quot;SHOW COLUMNS FROM {$bp-&gt;activity-&gt;table_name} LIKE 'component_name'&quot; ) ) {
-                        $wpdb-&gt;query( &quot;ALTER TABLE {$bp-&gt;activity-&gt;table_name} CHANGE component_name component varchar(75) NOT NULL&quot; );
-                }
-        }
-
-        // On first installation - record all existing blogs in the system.
-        if ( !(int) $bp-&gt;site_options['bp-blogs-first-install'] ) {
-                bp_blogs_record_existing_blogs();
-                bp_update_option( 'bp-blogs-first-install', 1 );
-        }
-
-        if ( is_multisite() ) {
-                bp_core_add_illegal_names();
-        }
-
-        // Update and remove the message threads table if it exists
-        if ( $wpdb-&gt;get_var( &quot;SHOW TABLES LIKE '%{$bp_prefix}bp_messages_threads%'&quot; ) ) {
-                if ( BP_Messages_Thread::update_tables() ) {
-                        $wpdb-&gt;query( &quot;DROP TABLE {$bp_prefix}bp_messages_threads&quot; );
-                }
-        }
-
-}
</del></span></pre></div>
<a id="trunkbpcoreadminbpcoreupdatephp"></a>
<div class="delfile"><h4>Deleted: trunk/bp-core/admin/bp-core-update.php (6582 => 6583)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/admin/bp-core-update.php        2012-12-10 08:36:33 UTC (rev 6582)
+++ trunk/bp-core/admin/bp-core-update.php        2012-12-10 08:47:07 UTC (rev 6583)
</span><span class="lines">@@ -1,5 +0,0 @@
</span><del>-&lt;?php
-
-// Exit if accessed directly
-if ( !defined( 'ABSPATH' ) ) exit;
-
</del></span></pre></div>
<a id="trunkbpcoredeprecated15php"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/deprecated/1.5.php (6582 => 6583)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/deprecated/1.5.php        2012-12-10 08:36:33 UTC (rev 6582)
+++ trunk/bp-core/deprecated/1.5.php        2012-12-10 08:47:07 UTC (rev 6583)
</span><span class="lines">@@ -12,6 +12,9 @@
</span><span class="cx"> 
</span><span class="cx"> /** Loader ********************************************************************/
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.5)
+ */
</ins><span class="cx"> function bp_setup_root_components() {
</span><span class="cx">         do_action( 'bp_setup_root_components' );
</span><span class="cx"> }
</span><span class="lines">@@ -25,7 +28,7 @@
</span><span class="cx">  * This function originally served as a wrapper when WordPress and WordPress MU were separate entities.
</span><span class="cx">  * Use is_multisite() instead.
</span><span class="cx">  *
</span><del>- * @deprecated 1.5
</del><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @deprecated Use is_multisite()
</span><span class="cx">  */
</span><span class="cx"> function bp_core_is_multisite() {
</span><span class="lines">@@ -38,7 +41,7 @@
</span><span class="cx">  *
</span><span class="cx">  * Checks if current blog is root blog of site. Deprecated in 1.5.
</span><span class="cx">  *
</span><del>- * @deprecated 1.5
</del><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @deprecated Use is_main_site()
</span><span class="cx">  * @package BuddyPress
</span><span class="cx">  * @param int $blog_id optional blog id to test (default current blog)
</span><span class="lines">@@ -53,7 +56,7 @@
</span><span class="cx"> /**
</span><span class="cx">  * WPMU version of is_super_admin()
</span><span class="cx">  *
</span><del>- * @deprecated 1.5
</del><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @deprecated Use is_super_admin()
</span><span class="cx">  * @param int $user_id Optional. Defaults to logged-in user
</span><span class="cx">  * @return bool True if is super admin
</span><span class="lines">@@ -71,7 +74,7 @@
</span><span class="cx">  * In BuddyPress 1.1 - 1.2.x, this function provided a better version of add_menu_page()
</span><span class="cx">  * that allowed positioning of menus. Deprecated in 1.5 in favour of a WP core function.
</span><span class="cx">  *
</span><del>- * @deprecated 1.5
</del><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @deprecated Use add_menu_page().
</span><span class="cx">  * @since BuddyPress (1.1)
</span><span class="cx">  */
</span><span class="lines">@@ -117,6 +120,9 @@
</span><span class="cx"> }
</span><span class="cx"> /** Activity ******************************************************************/
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.5)
+ */
</ins><span class="cx"> function bp_is_activity_permalink() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.5', 'bp_is_single_activity' );
</span><span class="cx">         bp_is_single_activity();
</span><span class="lines">@@ -124,11 +130,12 @@
</span><span class="cx"> 
</span><span class="cx"> /** Core **********************************************************************/
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.5)
+ */
</ins><span class="cx"> function bp_core_get_wp_profile() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.5' );
</span><span class="cx"> 
</span><del>-        global $bp;
-
</del><span class="cx">         $ud = get_userdata( bp_displayed_user_id() ); ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;bp-widget wp-profile&quot;&gt;
</span><span class="lines">@@ -196,6 +203,10 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.5)
+ * @deprecated Use bp_is_my_profile()
+ */
</ins><span class="cx"> function bp_is_home() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.5', 'bp_is_my_profile' );
</span><span class="cx">         return bp_is_my_profile();
</span><span class="lines">@@ -204,7 +215,7 @@
</span><span class="cx"> /**
</span><span class="cx">  * Is the user on the front page of the site?
</span><span class="cx">  *
</span><del>- * @deprecated 1.5
</del><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @deprecated Use is_front_page()
</span><span class="cx">  * @return bool
</span><span class="cx">  */
</span><span class="lines">@@ -216,7 +227,7 @@
</span><span class="cx"> /**
</span><span class="cx">  * Is the front page of the site set to the Activity component?
</span><span class="cx">  *
</span><del>- * @deprecated 1.5
</del><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @deprecated Use bp_is_component_front_page( 'activity' )
</span><span class="cx">  * @return bool
</span><span class="cx">  */
</span><span class="lines">@@ -225,11 +236,19 @@
</span><span class="cx">         return bp_is_component_front_page( 'activity' );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.5)
+ * @deprecated use bp_is_user()
+ */
</ins><span class="cx"> function bp_is_member() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user' );
</span><span class="cx">         return bp_is_user();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.5)
+ * @deprecated use bp_loggedin_user_link()
+ */
</ins><span class="cx"> function bp_loggedinuser_link() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.5', 'bp_logged_in_user_link' );
</span><span class="cx">         bp_loggedin_user_link();
</span><span class="lines">@@ -239,6 +258,7 @@
</span><span class="cx">  * Only show the search form if there are available objects to search for.
</span><span class="cx">  * Deprecated in 1.5; not used anymore.
</span><span class="cx">  *
</span><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @return bool
</span><span class="cx">  */
</span><span class="cx"> function bp_search_form_enabled() {
</span><span class="lines">@@ -249,7 +269,7 @@
</span><span class="cx"> /**
</span><span class="cx">  * Template tag version of bp_get_page_title()
</span><span class="cx">  *
</span><del>- * @deprecated 1.5
</del><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @deprecated Use wp_title()
</span><span class="cx">  * @since BuddyPress (1.0)
</span><span class="cx">  */
</span><span class="lines">@@ -260,7 +280,7 @@
</span><span class="cx">          * Prior to BuddyPress 1.5, this was used to generate the page's &lt;title&gt; text.
</span><span class="cx">          * Now, just simply use wp_title().
</span><span class="cx">          *
</span><del>-         * @deprecated 1.5
</del><ins>+         * @deprecated BuddyPress (1.5)
</ins><span class="cx">          * @deprecated Use wp_title()
</span><span class="cx">          * @since BuddyPress (1.0)
</span><span class="cx">          */
</span><span class="lines">@@ -277,7 +297,7 @@
</span><span class="cx"> /**
</span><span class="cx">  * Generate a link to log out. Last used in BP 1.2-beta. You should be using wp_logout_url().
</span><span class="cx">  *
</span><del>- * @deprecated 1.5
</del><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @deprecated Use wp_logout_url()
</span><span class="cx">  * @since BuddyPress (1.0)
</span><span class="cx">  */
</span><span class="lines">@@ -291,12 +311,10 @@
</span><span class="cx"> /**
</span><span class="cx">  * Send an email and a BP notification on receipt of an @-mention in a group
</span><span class="cx">  *
</span><del>- * @deprecated 1.5
</del><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @deprecated Deprecated in favor of the more general bp_activity_at_message_notification()
</span><span class="cx">  */
</span><span class="cx"> function groups_at_message_notification( $content, $poster_user_id, $group_id, $activity_id ) {
</span><del>-        global $bp;
-
</del><span class="cx">         _deprecated_function( __FUNCTION__, '1.5', 'bp_activity_at_message_notification()' );
</span><span class="cx"> 
</span><span class="cx">         /* Scan for @username strings in an activity update. Notify each user. */
</span><span class="lines">@@ -360,6 +378,7 @@
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * BP 1.5 simplified notification functions a bit
</span><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  */
</span><span class="cx"> function bp_core_delete_notifications_for_user_by_type( $user_id, $component_name, $component_action ) {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.5', 'bp_core_delete_notifications_by_type()' );
</span><span class="lines">@@ -373,6 +392,7 @@
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * In BP 1.5, these functions were renamed for greater consistency
</span><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  */
</span><span class="cx"> function bp_forum_directory_permalink() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.5', 'bp_forums_directory_permalink()' );
</span><span class="lines">@@ -385,6 +405,7 @@
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Last used by core in BP 1.1. The markup was merged into DTheme's header.php template.
</span><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  */
</span><span class="cx"> function bp_search_form() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.1', 'No longer required.' );
</span><span class="lines">@@ -404,17 +425,24 @@
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Some _is_ function had their names normalized
</span><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  */
</span><span class="cx"> function bp_is_profile_edit() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user_profile_edit()' );
</span><span class="cx">         return bp_is_user_profile_edit();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.5)
+ */
</ins><span class="cx"> function bp_is_change_avatar() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user_change_avatar()' );
</span><span class="cx">         return bp_is_user_change_avatar();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.5)
+ */
</ins><span class="cx"> function bp_is_friend_requests() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.5', 'bp_is_user_friend_requests()' );
</span><span class="cx">         return bp_is_user_friend_requests();
</span><span class="lines">@@ -425,7 +453,7 @@
</span><span class="cx">  * eg: http://domain.com/groups/the-group NOT http://domain.com/members/andy/groups/the-group
</span><span class="cx">  * You should be using bp_is_root_component().
</span><span class="cx">  *
</span><del>- * @deprecated 1.5
</del><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @deprecated bp_is_root_component()
</span><span class="cx">  * @return true if root component, else false.
</span><span class="cx">  */
</span><span class="lines">@@ -440,6 +468,7 @@
</span><span class="cx">  * Contains functions which were moved out of BP-Default's functions.php
</span><span class="cx">  * in BuddyPress 1.5.
</span><span class="cx">  *
</span><ins>+ * @deprecated BuddyPress (1.5)
</ins><span class="cx">  * @since BuddyPress (1.5)
</span><span class="cx">  */
</span><span class="cx"> function bp_dtheme_deprecated() {
</span><span class="lines">@@ -449,7 +478,7 @@
</span><span class="cx">          * Settings &gt; Reading screen for selecting the page to show on front to
</span><span class="cx">          * include &quot;Activity Stream.&quot; As of 1.5.x, it is no longer required.
</span><span class="cx">          *
</span><del>-         * @deprecated 1.5
</del><ins>+         * @deprecated BuddyPress (1.5)
</ins><span class="cx">          * @deprecated No longer required.
</span><span class="cx">          * @param string $page_html A list of pages as a dropdown (select list)
</span><span class="cx">          * @return string
</span><span class="lines">@@ -467,7 +496,7 @@
</span><span class="cx">          * In BuddyPress 1.2.x, this function hijacked the saving of page on front setting to save the activity stream setting.
</span><span class="cx">          * As of 1.5.x, it is no longer required.
</span><span class="cx">          *
</span><del>-         * @deprecated 1.5
</del><ins>+         * @deprecated BuddyPress (1.5)
</ins><span class="cx">          * @deprecated No longer required.
</span><span class="cx">          * @param $string $oldvalue Previous value of get_option( 'page_on_front' )
</span><span class="cx">          * @param $string $oldvalue New value of get_option( 'page_on_front' )
</span><span class="lines">@@ -488,7 +517,7 @@
</span><span class="cx">          * In BuddyPress 1.2.x, this function loaded the activity stream template if the front page display settings allow.
</span><span class="cx">          * As of 1.5.x, it is no longer required.
</span><span class="cx">          *
</span><del>-         * @deprecated 1.5
</del><ins>+         * @deprecated BuddyPress (1.5)
</ins><span class="cx">          * @deprecated No longer required.
</span><span class="cx">          * @param string $template Absolute path to the page template
</span><span class="cx">          * @return string
</span><span class="lines">@@ -505,7 +534,7 @@
</span><span class="cx">          * In BuddyPress 1.2.x, this forced the page ID as a string to stop the get_posts query from kicking up a fuss.
</span><span class="cx">          * As of 1.5.x, it is no longer required.
</span><span class="cx">          *
</span><del>-         * @deprecated 1.5
</del><ins>+         * @deprecated BuddyPress (1.5)
</ins><span class="cx">          * @deprecated No longer required.
</span><span class="cx">          * @since BuddyPress (1.2)
</span><span class="cx">          */
</span><span class="lines">@@ -519,7 +548,7 @@
</span><span class="cx">          * In BuddyPress 1.2.x, this was used as part of the code that set the activity stream to be on the front page.
</span><span class="cx">          * As of 1.5.x, it is no longer required.
</span><span class="cx">          *
</span><del>-         * @deprecated 1.5
</del><ins>+         * @deprecated BuddyPress (1.5)
</ins><span class="cx">          * @deprecated No longer required.
</span><span class="cx">          * @param array $posts Posts as retrieved by WP_Query
</span><span class="cx">          * @return array
</span><span class="lines">@@ -536,7 +565,7 @@
</span><span class="cx">          * In BuddyPress 1.2.x, this added the javascript needed for blog comment replies.
</span><span class="cx">          * As of 1.5.x, we recommend that you enqueue the comment-reply javascript in your theme's header.php.
</span><span class="cx">          *
</span><del>-         * @deprecated 1.5
</del><ins>+         * @deprecated BuddyPress (1.5)
</ins><span class="cx">          * @deprecated Enqueue the comment-reply script in your theme's header.php.
</span><span class="cx">          * @since BuddyPress (1.2)
</span><span class="cx">          */
</span></span></pre></div>
<a id="trunkbpcoredeprecated16php"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/deprecated/1.6.php (6582 => 6583)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/deprecated/1.6.php        2012-12-10 08:36:33 UTC (rev 6582)
+++ trunk/bp-core/deprecated/1.6.php        2012-12-10 08:47:07 UTC (rev 6583)
</span><span class="lines">@@ -8,41 +8,71 @@
</span><span class="cx">  * @deprecated Since 1.6
</span><span class="cx">  */
</span><span class="cx"> 
</span><ins>+// Exit if accessed directly
+if ( !defined( 'ABSPATH' ) ) exit;
+
</ins><span class="cx"> /** Toolbar functions *********************************************************/
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.6)
+ */
</ins><span class="cx"> function bp_admin_bar_remove_wp_menus() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.6)
+ */
</ins><span class="cx"> function bp_admin_bar_root_site() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.6)
+ */
</ins><span class="cx"> function bp_admin_bar_my_sites_menu() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_admin_bar_comments_menu( $wp_admin_bar ) {
</del><ins>+/**
+ * @deprecated BuddyPress (1.6)
+ */
+function bp_admin_bar_comments_menu( $wp_admin_bar = '' ) {
</ins><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.6)
+ */
</ins><span class="cx"> function bp_admin_bar_appearance_menu() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.6)
+ */
</ins><span class="cx"> function bp_admin_bar_updates_menu() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.6)
+ */
</ins><span class="cx"> function bp_members_admin_bar_my_account_logout() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.6)
+ */
</ins><span class="cx"> function bp_core_is_user_deleted( $user_id = 0 ) {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="cx">         bp_is_user_deleted( $user_id );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.6)
+ */
</ins><span class="cx"> function bp_core_is_user_spammer( $user_id = 0 ) {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="cx">         bp_is_user_spammer( $user_id );
</span><span class="lines">@@ -54,7 +84,7 @@
</span><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * @deprecated 1.6
</del><ins>+ * @deprecated BuddyPress (1.6)
</ins><span class="cx">  * @deprecated No longer used; see bp_blogs_transition_activity_status()
</span><span class="cx">  */
</span><span class="cx"> function bp_blogs_manage_comment( $comment_id, $comment_status ) {
</span><span class="lines">@@ -66,7 +96,7 @@
</span><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * @deprecated 1.6
</del><ins>+ * @deprecated BuddyPress (1.6)
</ins><span class="cx">  * @deprecated No longer used; see BP_Admin::admin_menus()
</span><span class="cx">  */
</span><span class="cx"> function bp_core_add_admin_menu() {
</span><span class="lines">@@ -74,7 +104,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * @deprecated 1.6
</del><ins>+ * @deprecated BuddyPress (1.6)
</ins><span class="cx">  * @deprecated No longer used. We do ajax properly now.
</span><span class="cx">  */
</span><span class="cx"> function bp_core_add_ajax_hook() {
</span><span class="lines">@@ -88,7 +118,7 @@
</span><span class="cx"> /**
</span><span class="cx">  * Displays Friends header tabs
</span><span class="cx">  *
</span><del>- * @deprecated 1.6
</del><ins>+ * @deprecated BuddyPress (1.6)
</ins><span class="cx">  * @deprecated No longer used
</span><span class="cx">  */
</span><span class="cx"> function bp_friends_header_tabs() {
</span><span class="lines">@@ -106,7 +136,7 @@
</span><span class="cx"> /**
</span><span class="cx">  * Filters the title for the Friends component
</span><span class="cx">  *
</span><del>- * @deprecated 1.6
</del><ins>+ * @deprecated BuddyPress (1.6)
</ins><span class="cx">  * @deprecated No longer used
</span><span class="cx">  */
</span><span class="cx"> function bp_friends_filter_title() {
</span><span class="lines">@@ -128,12 +158,10 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-/**
- * Groups functions
- */
</del><ins>+/** Groups functions **********************************************************/
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * @deprecated 1.6
</del><ins>+ * @deprecated BuddyPress (1.6)
</ins><span class="cx">  * @deprecated Renamed to groups_get_id() for greater consistency
</span><span class="cx">  */
</span><span class="cx"> function groups_check_group_exists( $group_slug ) {
</span><span class="lines">@@ -141,27 +169,21 @@
</span><span class="cx">         return groups_get_id( $group_slug );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-/**
- * Admin functions
- */
</del><ins>+/** Admin functions ***********************************************************/
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Loads admin panel styles and scripts.
</span><span class="cx">  *
</span><del>- * @deprecated 1.6
- * @deprecated No longer used.
</del><ins>+ * @deprecated BuddyPress (1.6)
</ins><span class="cx">  */
</span><span class="cx"> function bp_core_add_admin_menu_styles() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-/**
- * Activity functions
- */
</del><ins>+/** Activity functions ********************************************************/
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * @deprecated 1.6
- * @deprecated No longer used. Renamed to bp_activity_register_activity_actions().
</del><ins>+ * @deprecated BuddyPress (1.6)
</ins><span class="cx">  */
</span><span class="cx"> function updates_register_activity_actions() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.6' );
</span><span class="lines">@@ -170,8 +192,7 @@
</span><span class="cx"> /**
</span><span class="cx">  * Sets the &quot;From&quot; address in emails sent
</span><span class="cx">  *
</span><del>- * @deprecated 1.6
- * @deprecated No longer used.
</del><ins>+ * @deprecated BuddyPress (1.6)
</ins><span class="cx">  * @return noreply@sitedomain email address
</span><span class="cx">  */
</span><span class="cx"> function bp_core_email_from_address_filter() {
</span><span class="lines">@@ -197,6 +218,8 @@
</span><span class="cx">  *
</span><span class="cx">  * Note that this hack only runs if the function bp_dtheme_register_actions() is not found (this
</span><span class="cx">  * function was introduced in BP 1.6 for related backward compatibility reasons).
</span><ins>+ *
+ * @deprecated BuddyPress (1.6)
</ins><span class="cx">  */
</span><span class="cx"> if ( !function_exists( 'bp_dtheme_register_actions' ) ) :
</span><span class="cx">         function bp_die_legacy_ajax_callbacks() {
</span><span class="lines">@@ -249,4 +272,3 @@
</span><span class="cx">         }
</span><span class="cx">         add_action( 'after_setup_theme', 'bp_die_legacy_ajax_callbacks', 20 );
</span><span class="cx"> endif;
</span><del>-
</del></span></pre></div>
<a id="trunkbpcoredeprecated17php"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/deprecated/1.7.php (6582 => 6583)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/deprecated/1.7.php        2012-12-10 08:36:33 UTC (rev 6582)
+++ trunk/bp-core/deprecated/1.7.php        2012-12-10 08:47:07 UTC (rev 6583)
</span><span class="lines">@@ -14,6 +14,7 @@
</span><span class="cx">  * Output the BuddyPress maintenance mode
</span><span class="cx">  *
</span><span class="cx">  * @since BuddyPress (1.6)
</span><ins>+ * @deprecated BuddyPress (1.7)
</ins><span class="cx">  * @uses bp_get_maintenance_mode() To get the BuddyPress maintenance mode
</span><span class="cx">  */
</span><span class="cx"> function bp_maintenance_mode() {
</span><span class="lines">@@ -23,22 +24,34 @@
</span><span class="cx">          * Return the BuddyPress maintenance mode
</span><span class="cx">          *
</span><span class="cx">          * @since BuddyPress (1.6)
</span><ins>+         * @deprecated BuddyPress (1.7)
</ins><span class="cx">          * @return string The BuddyPress maintenance mode
</span><span class="cx">          */
</span><span class="cx">         function bp_get_maintenance_mode() {
</span><span class="cx">                 return buddypress()-&gt;maintenance_mode;
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.7)
+ */
</ins><span class="cx"> function xprofile_get_profile() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.7' );
</span><span class="cx">         bp_locate_template( array( 'profile/profile-loop.php' ), true );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.7)
+ */
</ins><span class="cx"> function bp_get_profile_header() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.7' );
</span><span class="cx">         bp_locate_template( array( 'profile/profile-header.php' ), true );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.7)
+ * @param string $component_name
+ * @return boolean
+ */
</ins><span class="cx"> function bp_exists( $component_name ) {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.7' );
</span><span class="cx">         if ( function_exists( $component_name . '_install' ) )
</span><span class="lines">@@ -47,6 +60,9 @@
</span><span class="cx">         return false;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @deprecated BuddyPress (1.7)
+ */
</ins><span class="cx"> function bp_get_plugin_sidebar() {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '1.7' );
</span><span class="cx">         bp_locate_template( array( 'plugin-sidebar.php' ), true );
</span><span class="lines">@@ -58,6 +74,7 @@
</span><span class="cx">  * bundled themes show up on the root blog selection screen and bypass this
</span><span class="cx">  * step. It also means that the themes won't show for selection on other blogs.
</span><span class="cx">  *
</span><ins>+ * @deprecated BuddyPress (1.7)
</ins><span class="cx">  * @package BuddyPress Core
</span><span class="cx">  */
</span><span class="cx"> function bp_core_allow_default_theme( $themes ) {
</span><span class="lines">@@ -90,6 +107,7 @@
</span><span class="cx">  *   - that no WP page has multiple BP components associated with it
</span><span class="cx">  * The administrator will be shown a notice for each check that fails.
</span><span class="cx">  *
</span><ins>+ * @deprecated BuddyPress (1.7)
</ins><span class="cx">  * @package BuddyPress Core
</span><span class="cx">  */
</span><span class="cx"> function bp_core_activation_notice() {
</span><span class="lines">@@ -210,3 +228,50 @@
</span><span class="cx">                 bp_core_add_admin_notice( $notice );
</span><span class="cx">         }
</span><span class="cx"> }
</span><ins>+
+/**
+ * This function was originally used to update pre-1.1 schemas, but that was
+ * before we had a legitimate update process.
+ *
+ * @deprecated BuddyPress (1.7)
+ * @global WPDB $wpdb
+ */
+function bp_update_db_stuff() {
+        global $wpdb;
+
+        $bp        = buddypress();
+        $bp_prefix = bp_core_get_table_prefix();
+
+        // Rename the old user activity cached table if needed.
+        if ( $wpdb-&gt;get_var( &quot;SHOW TABLES LIKE '%{$bp_prefix}bp_activity_user_activity_cached%'&quot; ) ) {
+                $wpdb-&gt;query( &quot;RENAME TABLE {$bp_prefix}bp_activity_user_activity_cached TO {$bp-&gt;activity-&gt;table_name}&quot; );
+        }
+
+        // Rename fields from pre BP 1.2
+        if ( $wpdb-&gt;get_var( &quot;SHOW TABLES LIKE '%{$bp-&gt;activity-&gt;table_name}%'&quot; ) ) {
+                if ( $wpdb-&gt;get_var( &quot;SHOW COLUMNS FROM {$bp-&gt;activity-&gt;table_name} LIKE 'component_action'&quot; ) ) {
+                        $wpdb-&gt;query( &quot;ALTER TABLE {$bp-&gt;activity-&gt;table_name} CHANGE component_action type varchar(75) NOT NULL&quot; );
+                }
+
+                if ( $wpdb-&gt;get_var( &quot;SHOW COLUMNS FROM {$bp-&gt;activity-&gt;table_name} LIKE 'component_name'&quot; ) ) {
+                        $wpdb-&gt;query( &quot;ALTER TABLE {$bp-&gt;activity-&gt;table_name} CHANGE component_name component varchar(75) NOT NULL&quot; );
+                }
+        }
+
+        // On first installation - record all existing blogs in the system.
+        if ( !(int) $bp-&gt;site_options['bp-blogs-first-install'] ) {
+                bp_blogs_record_existing_blogs();
+                bp_update_option( 'bp-blogs-first-install', 1 );
+        }
+
+        if ( is_multisite() ) {
+                bp_core_add_illegal_names();
+        }
+
+        // Update and remove the message threads table if it exists
+        if ( $wpdb-&gt;get_var( &quot;SHOW TABLES LIKE '%{$bp_prefix}bp_messages_threads%'&quot; ) ) {
+                if ( BP_Messages_Thread::update_tables() ) {
+                        $wpdb-&gt;query( &quot;DROP TABLE {$bp_prefix}bp_messages_threads&quot; );
+                }
+        }
+}
</ins></span></pre>
</div>
</div>

</body>
</html>