Ticket #1506: site-options.diff
| File site-options.diff, 2.2 KB (added by , 17 years ago) |
|---|
-
trunk/bp-themes/bp-default/functions.php
54 54 return $fullname[0]; 55 55 } 56 56 57 <<<<<<< .mine 58 function bp_dtheme_warn_deactivated() { 59 echo "<div class='updated fade'><h3>" . __( 'BuddyPress is not active, please change themes', 'buddypress') . "</h3></div>"; 60 } 61 62 ======= 57 63 function bp_dtheme_add_blog_comments_js() { 58 64 if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); 59 65 } … … 101 107 <?php 102 108 } 103 109 110 >>>>>>> .r2205 104 111 function bp_dtheme_remove_redundant() { 105 112 global $bp; 106 113 107 114 /* Remove the redundant "My Posts and My Comments" options since we can use filters on the activity stream. */ 108 bp_core_remove_subnav_item( $bp->blogs->slug, 'recent-posts' ); 109 bp_core_remove_subnav_item( $bp->blogs->slug, 'recent-comments' ); 115 if( isset( $bp ) ) { 116 bp_core_remove_subnav_item( $bp->blogs->slug, 'recent-posts' ); 117 bp_core_remove_subnav_item( $bp->blogs->slug, 'recent-comments' ); 118 } elseif( is_admin( ) ) { 119 add_action( 'admin_notices', 'bp_dtheme_warn_deactivated' ); 120 } 110 121 } 111 122 add_action( 'init', 'bp_dtheme_remove_redundant' ); 112 123 -
trunk/bp-core/bp-core-wpabstraction.php
28 28 return "{$prefix}spam = 0 AND {$prefix}deleted = 0 AND {$prefix}user_status = 0"; 29 29 } 30 30 31 if ( !function_exists( 'get_site_option' ) ) {32 function get_site_option( $option_value ) {33 return get_option( $option_value );34 }35 }36 37 if ( !function_exists( 'add_site_option' ) ) {38 function add_site_option( $option_name, $option_value ) {39 return add_option( $option_name, $option_value );40 }41 }42 43 if ( !function_exists( 'update_site_option' ) ) {44 function update_site_option( $option_name, $option_value ) {45 return update_option( $option_name, $option_value );46 }47 }48 49 31 if ( !function_exists( 'get_blog_option' ) ) { 50 32 function get_blog_option( $blog_id, $option_name ) { 51 33 return get_option( $option_name );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)