<!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] [1960] trunk: Updated admin menu/submenu syntax.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>1960</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-09-26 07:28:06 +0000 (Sat, 26 Sep 2009)</dd>
</dl>
<h3>Log Message</h3>
<pre>Updated admin menu/submenu syntax. Props markjaquith.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpcorebpcorecssjsphp">trunk/bp-core/bp-core-cssjs.php</a></li>
<li><a href="#trunkbpcorephp">trunk/bp-core.php</a></li>
<li><a href="#trunkbpforumsbpforumsadminphp">trunk/bp-forums/bp-forums-admin.php</a></li>
<li><a href="#trunkbpforumsphp">trunk/bp-forums.php</a></li>
<li><a href="#trunkbpxprofilebpxprofileadminphp">trunk/bp-xprofile/bp-xprofile-admin.php</a></li>
<li><a href="#trunkbpxprofilebpxprofileclassesphp">trunk/bp-xprofile/bp-xprofile-classes.php</a></li>
<li><a href="#trunkbpxprofilebpxprofilecssjsphp">trunk/bp-xprofile/bp-xprofile-cssjs.php</a></li>
<li><a href="#trunkbpxprofilephp">trunk/bp-xprofile.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpcorebpcorecssjsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-cssjs.php (1959 => 1960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-cssjs.php        2009-09-25 22:26:21 UTC (rev 1959)
+++ trunk/bp-core/bp-core-cssjs.php        2009-09-26 07:28:06 UTC (rev 1960)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx"> function bp_core_add_admin_bar_css() {
</span><span class="cx">         global $current_blog;
</span><span class="cx">         
</span><del>-        if ( defined( 'BP_DISABLE_ADMIN_BAR') )
</del><ins>+        if ( defined( 'BP_DISABLE_ADMIN_BAR' ) )
</ins><span class="cx">                 return false;
</span><span class="cx">         
</span><span class="cx">         if ( BP_ROOT_BLOG == $current_blog->blog_id && !is_admin() )
</span></span></pre></div>
<a id="trunkbpcorephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core.php (1959 => 1960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core.php        2009-09-25 22:26:21 UTC (rev 1959)
+++ trunk/bp-core.php        2009-09-26 07:28:06 UTC (rev 1960)
</span><span class="lines">@@ -283,13 +283,13 @@
</span><span class="cx">         bp_core_add_admin_menu_page( array(
</span><span class="cx">                 'menu_title' => __( 'BuddyPress', 'buddypress' ),
</span><span class="cx">                 'page_title' => __( 'BuddyPress', 'buddypress' ),
</span><del>-                'access_level' => 10, 'file' => 'bp-core.php',
</del><ins>+                'access_level' => 10, 'file' => 'bp-general-settings',
</ins><span class="cx">                 'function' => 'bp_core_admin_settings',
</span><span class="cx">                 'position' => 2
</span><span class="cx">         ) );
</span><span class="cx">         
</span><del>-        add_submenu_page( 'bp-core.php', __( 'General Settings', 'buddypress'), __( 'General Settings', 'buddypress' ), 1, 'bp-core.php', 'bp_core_admin_settings' );
-        add_submenu_page( 'bp-core.php', __( 'Component Setup', 'buddypress'), __( 'Component Setup', 'buddypress' ), 2, __FILE__, 'bp_core_admin_component_setup' );
</del><ins>+        add_submenu_page( 'bp-general-settings', __( 'General Settings', 'buddypress'), __( 'General Settings', 'buddypress' ), 'manage_options', 'bp-general-settings', 'bp_core_admin_settings' );
+        add_submenu_page( 'bp-general-settings', __( 'Component Setup', 'buddypress'), __( 'Component Setup', 'buddypress' ), 'manage_options', 'bp-component-setup', 'bp_core_admin_component_setup' );
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'admin_menu', 'bp_core_add_admin_menu' );
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpforumsbpforumsadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-forums/bp-forums-admin.php (1959 => 1960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-forums/bp-forums-admin.php        2009-09-25 22:26:21 UTC (rev 1959)
+++ trunk/bp-forums/bp-forums-admin.php        2009-09-26 07:28:06 UTC (rev 1960)
</span><span class="lines">@@ -19,7 +19,7 @@
</span><span class="cx">                         update_site_option( 'bb-config-location', false );
</span><span class="cx">                         bp_forums_bbpress_install_wizard();
</span><span class="cx">                 } else { ?>
</span><del>-                        <p><?php printf( __( 'bbPress forum integration in BuddyPress has been set up correctly. If you are having problems you can <a href="%s" title="Reinstall bbPress">re-install</a>', 'buddypress' ), site_url( 'wp-admin/admin.php?page=buddypress/bp-forums.php&reinstall=1' ) ); ?>
</del><ins>+                        <p><?php printf( __( 'bbPress forum integration in BuddyPress has been set up correctly. If you are having problems you can <a href="%s" title="Reinstall bbPress">re-install</a>', 'buddypress' ), site_url( 'wp-admin/admin.php?page=bb-forums-setup&reinstall=1' ) ); ?>
</ins><span class="cx">                         <p><?php _e( 'NOTE: The forums directory will only work if your bbPress tables are in the same database as your WordPress tables. If you are not using an existing bbPress install you can ignore this message.', 'buddypress' ) ?></p>
</span><span class="cx">                 <?php        
</span><span class="cx">                 }
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_forums_bbpress_install_wizard() {
</span><del>-        $post_url = site_url( 'wp-admin/admin.php?page=' . 'buddypress/bp-forums.php' );
</del><ins>+        $post_url = site_url( 'wp-admin/admin.php?page=bb-forums-setup' );
</ins><span class="cx">
</span><span class="cx">         switch( $_REQUEST['step'] ) {                 
</span><span class="cx">                 case 'existing':
</span></span></pre></div>
<a id="trunkbpforumsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-forums.php (1959 => 1960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-forums.php        2009-09-25 22:26:21 UTC (rev 1959)
+++ trunk/bp-forums.php        2009-09-26 07:28:06 UTC (rev 1960)
</span><span class="lines">@@ -74,7 +74,7 @@
</span><span class="cx">         require ( BP_PLUGIN_DIR . '/bp-forums/bp-forums-admin.php' );
</span><span class="cx">         
</span><span class="cx">         /* Add the administration tab under the "Site Admin" tab for site administrators */
</span><del>-        add_submenu_page( 'bp-core.php', __( 'Forums Setup', 'buddypress' ), __( 'Forums Setup', 'buddypress' ), 2, __FILE__, "bp_forums_bbpress_admin" );
</del><ins>+        add_submenu_page( 'bp-general-settings', __( 'Forums Setup', 'buddypress' ), __( 'Forums Setup', 'buddypress' ), 'manage_options', 'bb-forums-setup', "bp_forums_bbpress_admin" );
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'admin_menu', 'bp_forums_add_admin_menu' );
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofileadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-admin.php (1959 => 1960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-admin.php        2009-09-25 22:26:21 UTC (rev 1959)
+++ trunk/bp-xprofile/bp-xprofile-admin.php        2009-09-26 07:28:06 UTC (rev 1960)
</span><span class="lines">@@ -65,8 +65,8 @@
</span><span class="cx">                                                                 <th scope="col">&nbsp;</th>
</span><span class="cx">                                                          <th scope="col" colspan="<?php if ( $groups[$i]->can_delete ) { ?>3<?php } else { ?>5<?php } ?>"><?php echo attribute_escape( $groups[$i]->name ); ?></th>
</span><span class="cx">                                                                 <?php if ( $groups[$i]->can_delete ) { ?>         
</span><del>-                                                                        <th scope="col"><a class="edit" href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php&amp;mode=edit_group&amp;group_id=<?php echo attribute_escape( $groups[$i]->id ); ?>"><?php _e( 'Edit', 'buddypress' ) ?></a></th>
-                                                                 <th scope="col"><a class="delete" href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php&amp;mode=delete_group&amp;group_id=<?php echo attribute_escape( $groups[$i]->id ); ?>"><?php _e( 'Delete', 'buddypress' ) ?></a></th>
</del><ins>+                                                                        <th scope="col"><a class="edit" href="admin.php?page=bp-profile-setup&amp;mode=edit_group&amp;group_id=<?php echo attribute_escape( $groups[$i]->id ); ?>"><?php _e( 'Edit', 'buddypress' ) ?></a></th>
+                                                                 <th scope="col"><a class="delete" href="admin.php?page=bp-profile-setup&amp;mode=delete_group&amp;group_id=<?php echo attribute_escape( $groups[$i]->id ); ?>"><?php _e( 'Delete', 'buddypress' ) ?></a></th>
</ins><span class="cx">                                                                 <?php } ?>
</span><span class="cx">                                                         </tr>
</span><span class="cx">                                                         <tr class="header">
</span><span class="lines">@@ -92,8 +92,8 @@
</span><span class="cx">                                                                                 <td><span title="<?php echo $field->desc; ?>"><?php echo attribute_escape( $field->name ); ?> <?php if(!$field->can_delete) { ?>(Core)<?php } ?></span></td>
</span><span class="cx">                                                                          <td><?php echo attribute_escape( $field->type ); ?></td>
</span><span class="cx">                                                                          <td style="text-align:center;"><?php if ( $field->is_required ) { echo '<img src="' . BP_PLUGIN_URL . '/bp-xprofile/admin/images/tick.gif" alt="' . __( 'Yes', 'buddypress' ) . '" />'; } else { ?>--<?php } ?></td>
</span><del>-                                                                         <td style="text-align:center;"><?php if ( !$field->can_delete ) { ?><strike><?php _e( 'Edit', 'buddypress' ) ?></strike><?php } else { ?><a class="edit" href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php&amp;group_id=<?php echo attribute_escape( $groups[$i]->id ); ?>&amp;field_id=<?php echo attribute_escape( $field->id ); ?>&amp;mode=edit_field"><?php _e( 'Edit', 'buddypress' ) ?></a><?php } ?></td>
-                                                                         <td style="text-align:center;"><?php if ( !$field->can_delete ) { ?><strike><?php _e( 'Delete', 'buddypress' ) ?></strike><?php } else { ?><a class="delete" href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php&amp;field_id=<?php echo attribute_escape( $field->id ); ?>&amp;mode=delete_field"><?php _e( 'Delete', 'buddypress' ) ?></a><?php } ?></td>
</del><ins>+                                                                         <td style="text-align:center;"><?php if ( !$field->can_delete ) { ?><strike><?php _e( 'Edit', 'buddypress' ) ?></strike><?php } else { ?><a class="edit" href="admin.php?page=bp-profile-setup&amp;group_id=<?php echo attribute_escape( $groups[$i]->id ); ?>&amp;field_id=<?php echo attribute_escape( $field->id ); ?>&amp;mode=edit_field"><?php _e( 'Edit', 'buddypress' ) ?></a><?php } ?></td>
+                                                                         <td style="text-align:center;"><?php if ( !$field->can_delete ) { ?><strike><?php _e( 'Delete', 'buddypress' ) ?></strike><?php } else { ?><a class="delete" href="admin.php?page=bp-profile-setup&amp;field_id=<?php echo attribute_escape( $field->id ); ?>&amp;mode=delete_field"><?php _e( 'Delete', 'buddypress' ) ?></a><?php } ?></td>
</ins><span class="cx">                                                                  </tr>
</span><span class="cx">                                                         
</span><span class="cx">                                                                 <?php } ?>
</span><span class="lines">@@ -111,7 +111,7 @@
</span><span class="cx">                                                 <tfoot>
</span><span class="cx">                                                 
</span><span class="cx">                                                                 <tr class="nodrag">
</span><del>-                                                                        <td colspan="6"><a href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php&amp;group_id=<?php echo attribute_escape( $groups[$i]->id ); ?>&amp;mode=add_field"><?php _e( 'Add New Field', 'buddypress' ) ?></a></td>
</del><ins>+                                                                        <td colspan="6"><a href="admin.php?page=bp-profile-setup&amp;group_id=<?php echo attribute_escape( $groups[$i]->id ); ?>&amp;mode=add_field"><?php _e( 'Add New Field', 'buddypress' ) ?></a></td>
</ins><span class="cx">                                                                 </tr>
</span><span class="cx">                                                 
</span><span class="cx">                                                 </tfoot>
</span><span class="lines">@@ -122,12 +122,12 @@
</span><span class="cx">                                 <?php } /* End For */ ?>
</span><span class="cx">                         
</span><span class="cx">                                         <p>
</span><del>-                                                <a class="button" href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php&amp;mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ) ?></a>
</del><ins>+                                                <a class="button" href="admin.php?page=bp-profile-setup&amp;mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ) ?></a>
</ins><span class="cx">                                         </p>
</span><span class="cx">                                 
</span><span class="cx">                         <?php } else { ?>
</span><span class="cx">                                 <div id="message" class="error"><p><?php _e('You have no groups.', 'buddypress' ); ?></p></div>
</span><del>-                                <p><a href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php&amp;mode=add_group"><?php _e( 'Add New Group', 'buddypress' ) ?></a></p>
</del><ins>+                                <p><a href="admin.php?page=bp-profile-setup&amp;mode=add_group"><?php _e( 'Add New Group', 'buddypress' ) ?></a></p>
</ins><span class="cx">                         <?php } ?>
</span><span class="cx">                 
</span><span class="cx">                 </form>
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofileclassesphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-classes.php (1959 => 1960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-classes.php        2009-09-25 22:26:21 UTC (rev 1959)
+++ trunk/bp-xprofile/bp-xprofile-classes.php        2009-09-26 07:28:06 UTC (rev 1960)
</span><span class="lines">@@ -134,10 +134,10 @@
</span><span class="cx">
</span><span class="cx">                 if ( !$this->id ) {
</span><span class="cx">                         $title = __('Add New Field Group', 'buddypress');
</span><del>-                        $action = "admin.php?page=" . BP_PLUGIN_DIR . "/bp-xprofile.php&amp;mode=add_group";
</del><ins>+                        $action = "admin.php?page=bp-profile-setup&amp;mode=add_group";
</ins><span class="cx">                 } else {
</span><span class="cx">                         $title = __('Edit Field Group', 'buddypress');
</span><del>-                        $action = "admin.php?page=" . BP_PLUGIN_DIR . "/bp-xprofile.php&amp;mode=edit_group&amp;group_id=" . $this->id;                        
</del><ins>+                        $action = "admin.php?page=bp-profile-setup&amp;mode=edit_group&amp;group_id=" . $this->id;                        
</ins><span class="cx">                 }
</span><span class="cx">         ?>
</span><span class="cx">                 <div class="wrap">
</span><span class="lines">@@ -490,7 +490,7 @@
</span><span class="cx">                                                  <input type="text" name="<?php echo $type ?>_option[<?php echo $j ?>]" id="<?php echo $type ?>_option<?php echo $j ?>" value="<?php echo attribute_escape( $options[$i]->name ) ?>" />
</span><span class="cx">                                                  <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name ?>" <?php if ( (int) $options[$i]->is_default_option ) {?> checked="checked"<?php } ?> " value="<?php echo $j ?>" /> <?php _e( 'Default Value', 'buddypress' ) ?>
</span><span class="cx">                                                         <?php if ( $j != 1 &&
</span><del>-                                                                $options[$i]->id != -1 ) : ?><a href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php&amp;mode=delete_option&amp;option_id=<?php echo $options[$i]->id ?>" class="ajax-option-delete" id="delete-<?php echo $options[$i]->id ?>">[x]</a><?php endif ?></p>
</del><ins>+                                                                $options[$i]->id != -1 ) : ?><a href="admin.php?page=bp-profile-setup&amp;mode=delete_option&amp;option_id=<?php echo $options[$i]->id ?>" class="ajax-option-delete" id="delete-<?php echo $options[$i]->id ?>">[x]</a><?php endif ?></p>
</ins><span class="cx">                                                 </p>
</span><span class="cx">                                         <?php } // end for ?>
</span><span class="cx">                                         <input type="hidden" name="<?php echo $type ?>_option_number" id="<?php echo $type ?>_option_number" value="<?php echo $j + 1 ?>" />
</span><span class="lines">@@ -516,7 +516,7 @@
</span><span class="cx">         function render_admin_form( $message = '' ) {
</span><span class="cx">                 if ( !$this->id ) {
</span><span class="cx">                         $title = __('Add Field', 'buddypress');
</span><del>-                        $action = "admin.php?page=" . BP_PLUGIN_DIR . "/bp-xprofile.php&amp;group_id=" . $this->group_id . "&amp;mode=add_field";
</del><ins>+                        $action = "admin.php?page=bp-profile-setup&amp;group_id=" . $this->group_id . "&amp;mode=add_field";
</ins><span class="cx">
</span><span class="cx">                         $this->name                        = $_POST['title'];
</span><span class="cx">                         $this->desc                        = $_POST['description'];
</span><span class="lines">@@ -525,7 +525,7 @@
</span><span class="cx">                         $this->order_by                = $_POST["sort_order_{$this->type}"];
</span><span class="cx">                 } else {
</span><span class="cx">                         $title = __('Edit Field', 'buddypress');
</span><del>-                        $action = "admin.php?page=" . BP_PLUGIN_DIR . "/bp-xprofile.php&amp;mode=edit_field&amp;group_id=" . $this->group_id . "&amp;field_id=" . $this->id;                        
</del><ins>+                        $action = "admin.php?page=bp-profile-setup&amp;mode=edit_field&amp;group_id=" . $this->group_id . "&amp;field_id=" . $this->id;                        
</ins><span class="cx">                 }
</span><span class="cx">         ?>
</span><span class="cx">         
</span><span class="lines">@@ -583,7 +583,7 @@
</span><span class="cx">         
</span><span class="cx">                                 <p class="submit">
</span><span class="cx">                                                 &nbsp;<input type="submit" value="<?php _e("Save", 'buddypress') ?> &raquo;" name="saveField" id="saveField" style="font-weight: bold" />
</span><del>-                                                 <?php _e('or', 'buddypress') ?> <a href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php" style="color: red"><?php _e( 'Cancel', 'buddypress' ) ?></a>
</del><ins>+                                                 <?php _e('or', 'buddypress') ?> <a href="admin.php?page=bp-profile-setup" style="color: red"><?php _e( 'Cancel', 'buddypress' ) ?></a>
</ins><span class="cx">                                 </p>
</span><span class="cx">                         
</span><span class="cx">                         <div class="clear"></div>
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofilecssjsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-cssjs.php (1959 => 1960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-cssjs.php        2009-09-25 22:26:21 UTC (rev 1959)
+++ trunk/bp-xprofile/bp-xprofile-cssjs.php        2009-09-26 07:28:06 UTC (rev 1960)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx"> add_action( 'admin_menu', 'xprofile_add_admin_css' );
</span><span class="cx">
</span><span class="cx"> function xprofile_add_admin_js() {
</span><del>-        if ( strpos( $_GET['page'], 'xprofile' ) !== false ) {
</del><ins>+        if ( strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) {
</ins><span class="cx">                 wp_enqueue_script( array( "jquery-ui-sortable" ) );
</span><span class="cx">                 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.js', array( 'jquery' ) );
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkbpxprofilephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile.php (1959 => 1960)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile.php        2009-09-25 22:26:21 UTC (rev 1959)
+++ trunk/bp-xprofile.php        2009-09-26 07:28:06 UTC (rev 1960)
</span><span class="lines">@@ -177,7 +177,7 @@
</span><span class="cx">                 return false;
</span><span class="cx">                         
</span><span class="cx">         /* Add the administration tab under the "Site Admin" tab for site administrators */
</span><del>-        add_submenu_page( 'bp-core.php', __("Profile Field Setup", 'buddypress'), __("Profile Field Setup", 'buddypress'), 1, __FILE__, "xprofile_admin" );
</del><ins>+        add_submenu_page( 'bp-general-settings', __("Profile Field Setup", 'buddypress'), __("Profile Field Setup", 'buddypress'), 'manage-options', 'bp-profile-setup', "xprofile_admin" );
</ins><span class="cx">
</span><span class="cx">         /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
</span><span class="cx">         if ( get_site_option('bp-xprofile-db-version') < BP_XPROFILE_DB_VERSION )
</span></span></pre>
</div>
</div>
</body>
</html>