Making WordPress.org


Ignore:
Timestamp:
10/13/2022 06:41:30 AM (3 years ago)
Author:
dd32
Message:

Support Forums: Term Subscription: Remove unused parameters on hooked functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-term-subscription/inc/class-plugin.php

    r12012 r12125  
    6767
    6868        // Notify subscribers when a topic or reply with a given term is added.
    69         add_action( 'bbp_new_topic', array( $this, 'notify_term_subscribers_of_new_topic' ), 10, 4 );
    70         add_action( 'bbp_new_reply', array( $this, 'notify_term_subscribers_of_new_reply' ), 10, 5 );
     69        add_action( 'bbp_new_topic', array( $this, 'notify_term_subscribers_of_new_topic' ), 10, 2 );
     70        add_action( 'bbp_new_reply', array( $this, 'notify_term_subscribers_of_new_reply' ), 10, 3 );
    7171
    7272        // Replace the title of subscription emails with the term-specific prefix.
     
    260260     * @param int $topic_id The topic id
    261261     * @param int $forum_id The forum id
    262      * @param mixed $anonymous_data Array of anonymous user data
    263      * @param int $topic_author The topic author id
    264      */
    265     public function notify_term_subscribers_of_new_topic( $topic_id, $forum_id, $anonymous_data = false, $topic_author = 0 ) {
     262     */
     263    public function notify_term_subscribers_of_new_topic( $topic_id, $forum_id ) {
    266264        $terms = get_the_terms( $topic_id, $this->taxonomy );
    267265        if ( ! $terms ) {
     
    410408     * @param int $topic_id The topic id
    411409     * @param int $forum_id The forum id
    412      * @param mixed $anonymous_data
    413      * @param int $reply_author
    414      */
    415     public function notify_term_subscribers_of_new_reply( $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author ) {
     410     */
     411    public function notify_term_subscribers_of_new_reply( $reply_id, $topic_id, $forum_id ) {
    416412        $terms = get_the_terms( $topic_id, $this->taxonomy );
    417413        if ( ! $terms ) {
Note: See TracChangeset for help on using the changeset viewer.