Ticket #8229: 8229.patch
File 8229.patch, 5.0 KB (added by , 5 years ago) |
---|
-
src/bp-core/deprecated/2.0.php
7 7 * @deprecated 2.0.0 8 8 */ 9 9 10 // Exit if accessed directly 10 // Exit if accessed directly. 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 13 /** -
src/bp-core/deprecated/2.1.php
7 7 * @deprecated 2.1.0 8 8 */ 9 9 10 // Exit if accessed directly 10 // Exit if accessed directly. 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 13 /** … … 189 189 190 190 echo '<li class="bp-login no-arrow"><a href="' . wp_login_url() . '">' . __( 'Log In', 'buddypress' ) . '</a></li>'; 191 191 192 // Show "Sign Up" link if user registrations are allowed 192 // Show "Sign Up" link if user registrations are allowed. 193 193 if ( bp_get_signup_allowed() ) { 194 194 echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page() . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>'; 195 195 } … … 213 213 echo __( 'My Account', 'buddypress' ) . '</a>'; 214 214 echo '<ul>'; 215 215 216 // Loop through each navigation item 216 // Loop through each navigation item. 217 217 $counter = 0; 218 218 foreach( (array) $bp->bp_nav as $nav_item ) { 219 219 $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; … … 326 326 327 327 $min = bp_core_get_minified_asset_suffix(); 328 328 329 if ( file_exists( get_stylesheet_directory() . '/_inc/css/adminbar.css' ) ) { // Backwards compatibility 329 if ( file_exists( get_stylesheet_directory() . '/_inc/css/adminbar.css' ) ) { // Backwards compatibility. 330 330 $stylesheet = get_stylesheet_directory_uri() . '/_inc/css/adminbar.css'; 331 331 } else { 332 332 $stylesheet = buddypress()->plugin_url . "bp-core/css/buddybar{$min}.css"; … … 355 355 return false; 356 356 } 357 357 358 // Only group admins and site admins can see this menu 358 // Only group admins and site admins can see this menu. 359 359 if ( !current_user_can( 'edit_users' ) && !bp_current_user_can( 'bp_moderate' ) && !bp_is_item_admin() ) { 360 360 return false; 361 361 } ?> … … 406 406 */ 407 407 function bp_adminbar_notifications_menu() { 408 408 409 // Bail if notifications is not active 409 // Bail if notifications is not active. 410 410 if ( ! bp_is_active( 'notifications' ) ) { 411 411 return false; 412 412 } … … 423 423 function bp_adminbar_authors_menu() { 424 424 global $wpdb; 425 425 426 // Only for multisite 426 // Only for multisite. 427 427 if ( ! is_multisite() ) { 428 428 return false; 429 429 } 430 430 431 // Hide on root blog 431 // Hide on root blog. 432 432 if ( bp_is_root_blog( $wpdb->blogid ) || ! bp_is_active( 'blogs' ) ) { 433 433 return false; 434 434 } … … 437 437 $authors = $wpdb->get_results( "SELECT user_id, user_login, user_nicename, display_name, user_email, meta_value as caps FROM $wpdb->users u, $wpdb->usermeta um WHERE u.ID = um.user_id AND meta_key = '{$blog_prefix}capabilities' ORDER BY um.user_id" ); 438 438 439 439 if ( !empty( $authors ) ) { 440 // This is a blog, render a menu with links to all authors 440 // This is a blog, render a menu with links to all authors. 441 441 echo '<li id="bp-adminbar-authors-menu"><a href="/">'; 442 442 _e('Blog Authors', 'buddypress'); 443 443 echo '</a>'; … … 478 478 */ 479 479 function bp_members_adminbar_admin_menu() { 480 480 481 // Only show if viewing a user 481 // Only show if viewing a user. 482 482 if ( ! bp_displayed_user_id() ) { 483 483 return false; 484 484 } 485 485 486 // Don't show this menu to non site admins or if you're viewing your own profile 486 // Don't show this menu to non site admins or if you're viewing your own profile. 487 487 if ( !current_user_can( 'edit_users' ) || bp_is_my_profile() ) { 488 488 return false; 489 489 } ?> -
src/bp-core/deprecated/2.2.php
7 7 * @deprecated 2.2.0 8 8 */ 9 9 10 // Exit if accessed directly 10 // Exit if accessed directly. 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 13 /** … … 22 22 * @since 2.0.0 23 23 * @deprecated 2.2.0 24 24 * 25 * @todo Support untrashing better 25 * @todo Support untrashing better. 26 26 * 27 27 * @param string $new_status New status for the post. 28 28 * @param string $old_status Old status for the post. … … 96 96 } 97 97 98 98 /** 99 * Add 'bp' to global group of network wide ca chable objects.99 * Add 'bp' to global group of network wide catchable objects. 100 100 * 101 101 * @since 1.1.0 102 102 * @deprecated 2.2.0 -
src/bp-core/deprecated/2.5.php
79 79 $to_changed = true; 80 80 81 81 $value = array_shift( $original_value ); 82 $recipient_name = $value->get_name(); // Value - name 83 $value = $value->get_address(); // Key - email 82 $recipient_name = $value->get_name(); // Value - name. 83 $value = $value->get_address(); // Key - email. 84 84 } 85 85 86 86 if ( $email_type === 'activity-comment' ) {