Skip to:
Content

bbPress.org

Ticket #2371: 2731.patch

File 2731.patch, 3.4 KB (added by boonebgorges, 11 years ago)
  • bbpress.php

     
    838838         * @uses wp_get_current_user()
    839839         */
    840840        public function setup_current_user() {
    841                 $this->current_user = &wp_get_current_user();
     841                $this->current_user = wp_get_current_user();
    842842        }
    843843
    844844        /** Custom Rewrite Rules **************************************************/
  • includes/common/classes.php

     
    225225         *                    for padding.
    226226         * @param array $args Uses 'selected' argument for selected post to set
    227227         *                     selected HTML attribute for option element.
     228         * @param int $current_object_id
    228229         * @uses bbp_is_forum_category() To check if the forum is a category
    229230         * @uses current_user_can() To check if the current user can post in
    230231         *                           closed forums
     
    232233         * @uses apply_filters() Calls 'bbp_walker_dropdown_post_title' with the
    233234         *                        title, output, post, depth and args
    234235         */
    235         public function start_el( &$output, $_post, $depth, $args ) {
     236        public function start_el( &$output, $_post, $depth = 0, $args = array(), $current_object_id = 0 ) {
    236237                $pad     = str_repeat( ' ', $depth * 3 );
    237238                $output .= '<option class="level-' . $depth . '"';
    238239
     
    261262
    262263/**
    263264 * Create hierarchical list of bbPress replies.
    264  * 
     265 *
    265266 * @package bbPress
    266267 * @subpackage Classes
    267268 *
  • includes/extend/buddypress/groups.php

     
    458458         *
    459459         * @since bbPress (r3465)
    460460         */
    461         public function create_screen() {
     461        public function create_screen( $group_id = null ) {
    462462
    463463                // Bail if not looking at this screen
    464464                if ( !bp_is_group_creation_step( $this->slug ) )
     
    485485         *
    486486         * @since bbPress (r3465)
    487487         */
    488         public function create_screen_save() {
     488        public function create_screen_save( $group_id = null ) {
    489489
    490490                // Nonce check
    491491                if ( ! bbp_verify_nonce_request( 'groups_create_save_' . $this->slug ) ) {
  • includes/extend/buddypress/loader.php

     
    5151        /**
    5252         * Include BuddyPress classes and functions
    5353         */
    54         public function includes() {
     54        public function includes( $includes = array() ) {
    5555
    5656                // Helper BuddyPress functions
    5757                $includes[] = 'functions.php';
     
    8080         *
    8181         * @since bbPress (r3552)
    8282         */
    83         public function setup_globals() {
     83        public function setup_globals( $args = array() ) {
    8484                $bp = buddypress();
    8585
    8686                // Define the parent forum ID
     
    157157         *
    158158         * @since bbPress (r3552)
    159159         */
    160         public function setup_nav() {
     160        public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    161161
    162162                // Stop if there is no user displayed or logged in
    163163                if ( !is_user_logged_in() && !bp_displayed_user_id() )
     
    242242         *
    243243         * @since bbPress (r3552)
    244244         */
    245         public function setup_admin_bar() {
     245        public function setup_admin_bar( $wp_admin_nav = array() ) {
    246246
    247247                // Prevent debug notices
    248248                $wp_admin_nav = array();