Skip to:
Content

BuddyPress.org

Ticket #8635: 8635.3.diff

File 8635.3.diff, 1.3 KB (added by oztaser, 2 years ago)

We don't need to pass any arguments to these functions.

  • src/bp-messages/bp-messages-template.php

    diff --git a/src/bp-messages/bp-messages-template.php b/src/bp-messages/bp-messages-template.php
    index ebbc33677f..68512bdf00 100644
    a b function bp_get_message_thread_total_and_unread_count( $thread_id = false ) { 
    669669                }
    670670
    671671                $total  = bp_get_message_thread_total_count( $thread_id );
    672                 $unread = bp_get_message_thread_unread_count( $thread_id );
     672                $unread = bp_get_message_thread_unread_count();
    673673
    674674                return sprintf(
    675675                        /* translators: 1: total number, 2: accessibility text: number of unread messages */
  • src/bp-templates/bp-legacy/buddypress/members/single/messages/compose.php

    diff --git a/src/bp-templates/bp-legacy/buddypress/members/single/messages/compose.php b/src/bp-templates/bp-legacy/buddypress/members/single/messages/compose.php
    index 41de06e5c5..a5ede45de0 100644
    a b  
    1313        _e( 'Compose Message', 'buddypress' );
    1414?></h2>
    1515
    16 <form action="<?php bp_messages_form_action('compose' ); ?>" method="post" id="send_message_form" class="standard-form" enctype="multipart/form-data">
     16<form action="<?php bp_messages_form_action(); ?>" method="post" id="send_message_form" class="standard-form" enctype="multipart/form-data">
    1717
    1818        <?php
    1919