Changeset 1861
- Timestamp:
- 09/12/2009 12:30:43 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r1836 r1861 1479 1479 1480 1480 /* Make sure account deletion is not disabled */ 1481 if ( ( 1 == (int)get_site_option( 'bp-disable-account-deletion' ) && !is_site_admin() ) )1481 if ( ( !(int) get_site_option( 'bp-disable-account-deletion' ) && !is_site_admin() ) ) 1482 1482 return false; 1483 1483 -
trunk/bp-core/bp-core-admin.php
r1784 r1861 92 92 <input type="radio" name="bp-admin[bp-disable-account-deletion]"<?php if ( !(int)get_site_option( 'bp-disable-account-deletion' ) || '' == get_site_option( 'bp-disable-account-deletion' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-account-deletion" value="0" /> <?php _e( 'No', 'buddypress' ) ?> 93 93 </td> 94 </tr> 95 <?php if ( function_exists( 'bp_forums_setup') ) : ?> 96 <tr> 97 <th scope="row"><?php _e( 'Disable global forum directory?', 'buddypress' ) ?>:</th> 98 <td> 99 <input type="radio" name="bp-admin[bp-disable-forum-directory]"<?php if ( (int)get_site_option( 'bp-disable-forum-directory' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-forum-directory" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> 100 <input type="radio" name="bp-admin[bp-disable-forum-directory]"<?php if ( !(int)get_site_option( 'bp-disable-forum-directory' ) || '' == get_site_option( 'bp-disable-forum-directory' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-forum-directory" value="0" /> <?php _e( 'No', 'buddypress' ) ?> 101 </td> 94 102 </tr> 95 <?php if ( !locate_template( array( 'registration/register.php' ) ) ) :?> 103 <?php endif; ?> 104 105 <?php if ( !locate_template( array( 'registration/register.php' ) ) ) : ?> 96 106 <tr> 97 107 <th scope="row"><?php _e('Select theme to use for BuddyPress generated pages', 'buddypress' ) ?>:</th> -
trunk/bp-core/bp-core-settings.php
r1784 r1861 22 22 bp_core_new_subnav_item( array( 'name' => __( 'Notifications', 'buddypress' ), 'slug' => 'notifications', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_notification_settings', 'position' => 20, 'user_has_access' => bp_is_home() ) ); 23 23 24 if ( !is_site_admin() && 1 != (int)get_site_option( 'bp-disable-account-deletion' ) )24 if ( !is_site_admin() && !(int) get_site_option( 'bp-disable-account-deletion' ) ) 25 25 bp_core_new_subnav_item( array( 'name' => __( 'Delete Account', 'buddypress' ), 'slug' => 'delete-account', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_delete_account', 'position' => 90, 'user_has_access' => bp_is_home() ) ); 26 26 } -
trunk/bp-forums/bp-forums-admin.php
r1753 r1861 20 20 else { ?> 21 21 <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' ) ); ?> 22 <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> 22 23 <?php 23 24 }
Note: See TracChangeset
for help on using the changeset viewer.