Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/26/2021 12:53:27 AM (4 years ago)
Author:
espellcaste
Message:

Making PHPDoc Improvements to the BP Messages (component) files.

Also, adding several minor PHP changes.

See #8553

File:
1 edited

Legend:

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

    r11578 r13096  
    5454 * @param BP_Messages_Message $message Message being saved.
    5555 */
    56 function bp_messages_clear_cache_on_message_save( BP_Messages_Message $message ) {
     56function bp_messages_clear_cache_on_message_save( $message ) {
    5757    // Delete thread cache.
    5858    wp_cache_delete( $message->thread_id, 'bp_messages_threads' );
     
    7979function bp_messages_clear_cache_on_message_delete( $thread_ids, $user_id ) {
    8080    // Delete thread and thread recipient cache.
    81     foreach( (array) $thread_ids as $thread_id ) {
     81    foreach ( (array) $thread_ids as $thread_id ) {
    8282        wp_cache_delete( $thread_id, 'bp_messages_threads' );
    8383        wp_cache_delete( "thread_recipients_{$thread_id}", 'bp_messages' );
     
    9595 *
    9696 * @since 2.0.0
    97  *
    98  * @param BP_Messages_Notice $notice Notice that was saved.
    9997 */
    100 function bp_notices_clear_cache( $notice ) {
     98function bp_notices_clear_cache() {
    10199    wp_cache_delete( 'active_notice', 'bp_messages' );
    102100}
    103 add_action( 'messages_notice_after_save',    'bp_notices_clear_cache' );
     101add_action( 'messages_notice_after_save', 'bp_notices_clear_cache' );
    104102add_action( 'messages_notice_before_delete', 'bp_notices_clear_cache' );
Note: See TracChangeset for help on using the changeset viewer.