diff --git bp-messages/bp-messages-notifications.php bp-messages/bp-messages-notifications.php
index 6490935..f48deb5 100644
|
|
|
if ( !defined( 'ABSPATH' ) ) exit; |
| 16 | 16 | * Email message recipients to alert them of a new unread private message |
| 17 | 17 | * |
| 18 | 18 | * @since BuddyPress (1.0) |
| 19 | | * @param array $args |
| | 19 | * @param array $raw_args |
| 20 | 20 | */ |
| 21 | | function messages_notification_new_message( $args = array() ) { |
| | 21 | function messages_notification_new_message( $raw_args = array() ) { |
| 22 | 22 | |
| 23 | 23 | // Cast possible $message object as an array |
| 24 | | if ( is_object( $args ) ) { |
| 25 | | $args = (array) $args; |
| | 24 | if ( is_object( $raw_args ) ) { |
| | 25 | $args = (array) $raw_args; |
| | 26 | } else { |
| | 27 | $args = $raw_args; |
| 26 | 28 | } |
| 27 | 29 | |
| 28 | 30 | // These should be extracted below |