Skip to:
Content

BuddyPress.org

Changeset 11113


Ignore:
Timestamp:
09/19/2016 02:26:21 AM (10 years ago)
Author:
r-a-y
Message:

Core: In BP_Button class, add parameter to dynamic button filter to compare parsed button arguments.

See #7226.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-button.php

    r10417 r11113  
    242242                 *
    243243                 * @since 1.2.6
     244                 * @since 2.7.0 Added $r as a parameter.
    244245                 *
    245246                 * @param string    $contents HTML being used for the button.
    … …  
    247248                 * @param string    $before   HTML appended before the actual button.
    248249                 * @param string    $after    HTML appended after the actual button.
     250                 * @param array     $r        Parsed button arguments.
    249251                 */
    250                 $this->contents = apply_filters( 'bp_button_' . $this->component . '_' . $this->id, $this->contents, $this, $before, $after );
     252                $this->contents = apply_filters( 'bp_button_' . $this->component . '_' . $this->id, $this->contents, $this, $before, $after, $r );
    251253        }
    252254
Note: See TracChangeset for help on using the changeset viewer.