Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2019 01:38:37 PM (5 years ago)
Author:
netweb
Message:

Build Tools: Add PHPCS with custom bbPress ruleset

  • This changeset adds an initial bbPress PHPCS ruleset
  • Future iteration of the rules in the ruleset can follow later
  • To run the PHPCS check run `grunt phpcs

Fixes #3294.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/notifications.php

    r6981 r7006  
    9393        $filter = 'bbp_single_new_subscription_notification';
    9494        $text   = ! empty( $secondary_item_id )
    95             ? sprintf( esc_html__( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), $action_item_count, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) )
    96             : sprintf( esc_html__( 'You have %d new reply to %s',             'bbpress' ), $action_item_count, $topic_title );
     95            ? sprintf( esc_html__( 'You have %1$d new reply to %2$s from %3$s', 'bbpress' ), $action_item_count, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) )
     96            : sprintf( esc_html__( 'You have %1$d new reply to %2$s',             'bbpress' ), $action_item_count, $topic_title );
    9797    }
    9898
     
    155155    // Notify the topic author if not the current reply author
    156156    if ( $author_id !== $topic_author_id ) {
    157         $args['secondary_item_id'] = $secondary_item_id ;
     157        $args['secondary_item_id'] = $secondary_item_id;
    158158
    159159        bp_notifications_add_notification( $args );
Note: See TracChangeset for help on using the changeset viewer.