Ticket #2371: 2731.patch
File 2731.patch, 3.4 KB (added by , 11 years ago) |
---|
-
bbpress.php
838 838 * @uses wp_get_current_user() 839 839 */ 840 840 public function setup_current_user() { 841 $this->current_user = &wp_get_current_user();841 $this->current_user = wp_get_current_user(); 842 842 } 843 843 844 844 /** Custom Rewrite Rules **************************************************/ -
includes/common/classes.php
225 225 * for padding. 226 226 * @param array $args Uses 'selected' argument for selected post to set 227 227 * selected HTML attribute for option element. 228 * @param int $current_object_id 228 229 * @uses bbp_is_forum_category() To check if the forum is a category 229 230 * @uses current_user_can() To check if the current user can post in 230 231 * closed forums … … 232 233 * @uses apply_filters() Calls 'bbp_walker_dropdown_post_title' with the 233 234 * title, output, post, depth and args 234 235 */ 235 public function start_el( &$output, $_post, $depth , $args) {236 public function start_el( &$output, $_post, $depth = 0, $args = array(), $current_object_id = 0 ) { 236 237 $pad = str_repeat( ' ', $depth * 3 ); 237 238 $output .= '<option class="level-' . $depth . '"'; 238 239 … … 261 262 262 263 /** 263 264 * Create hierarchical list of bbPress replies. 264 * 265 * 265 266 * @package bbPress 266 267 * @subpackage Classes 267 268 * -
includes/extend/buddypress/groups.php
458 458 * 459 459 * @since bbPress (r3465) 460 460 */ 461 public function create_screen( ) {461 public function create_screen( $group_id = null ) { 462 462 463 463 // Bail if not looking at this screen 464 464 if ( !bp_is_group_creation_step( $this->slug ) ) … … 485 485 * 486 486 * @since bbPress (r3465) 487 487 */ 488 public function create_screen_save( ) {488 public function create_screen_save( $group_id = null ) { 489 489 490 490 // Nonce check 491 491 if ( ! bbp_verify_nonce_request( 'groups_create_save_' . $this->slug ) ) { -
includes/extend/buddypress/loader.php
51 51 /** 52 52 * Include BuddyPress classes and functions 53 53 */ 54 public function includes( ) {54 public function includes( $includes = array() ) { 55 55 56 56 // Helper BuddyPress functions 57 57 $includes[] = 'functions.php'; … … 80 80 * 81 81 * @since bbPress (r3552) 82 82 */ 83 public function setup_globals( ) {83 public function setup_globals( $args = array() ) { 84 84 $bp = buddypress(); 85 85 86 86 // Define the parent forum ID … … 157 157 * 158 158 * @since bbPress (r3552) 159 159 */ 160 public function setup_nav( ) {160 public function setup_nav( $main_nav = array(), $sub_nav = array() ) { 161 161 162 162 // Stop if there is no user displayed or logged in 163 163 if ( !is_user_logged_in() && !bp_displayed_user_id() ) … … 242 242 * 243 243 * @since bbPress (r3552) 244 244 */ 245 public function setup_admin_bar( ) {245 public function setup_admin_bar( $wp_admin_nav = array() ) { 246 246 247 247 // Prevent debug notices 248 248 $wp_admin_nav = array();