Skip to:
Content

BuddyPress.org

Changeset 13295


Ignore:
Timestamp:
07/06/2022 10:36:42 AM (2 years ago)
Author:
imath
Message:

Remove unnecessary arg when using functions which don't expect one

bp_get_message_thread_unread_count() & bp_messages_form_action() do
not accept any arguments.

Props oztaser

See #8635

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-template.php

    r13196 r13295  
    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(
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/compose.php

    r12082 r13295  
    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
Note: See TracChangeset for help on using the changeset viewer.