WordPress.org

Making WordPress.org

Changeset 5674


Ignore:
Timestamp:
07/16/2017 07:37:19 PM (12 months ago)
Author:
SergeyBiryukov
Message:

Support Forums: Pass correct number of arguments to Dropin::bbp_update_topic() and Dropin::bbp_update_reply().

See #1971, #2043.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-dropin.php

    r5673 r5674  
    3737        remove_action( 'bbp_new_topic',  'bbp_update_topic' );
    3838        remove_action( 'bbp_edit_topic', 'bbp_update_topic' );
    39         add_action( 'bbp_new_topic',     array( $this, 'bbp_update_topic' ) );
    40         add_action( 'bbp_edit_topic',    array( $this, 'bbp_update_topic' ) );
     39        add_action( 'bbp_new_topic',     array( $this, 'bbp_update_topic' ), 10, 5 );
     40        add_action( 'bbp_edit_topic',    array( $this, 'bbp_update_topic' ), 10, 5 );
    4141
    4242        // Avoid bbp_update_reply_walker().
    4343        remove_action( 'bbp_new_reply',  'bbp_update_reply' );
    4444        remove_action( 'bbp_edit_reply', 'bbp_update_reply' );
    45         add_action( 'bbp_new_reply',     array( $this, 'bbp_update_reply' ) );
    46         add_action( 'bbp_edit_reply',    array( $this, 'bbp_update_reply' ) );
     45        add_action( 'bbp_new_reply',     array( $this, 'bbp_update_reply' ), 10, 7 );
     46        add_action( 'bbp_edit_reply',    array( $this, 'bbp_update_reply' ), 10, 7 );
    4747
    4848        if ( is_admin() ) {
Note: See TracChangeset for help on using the changeset viewer.