Merged in release/release-1.09 (pull request #10)
Release/release 1.09 * Install missing plugins * rs set to 1 * rebase pantheon for aws * rebase pantheon for aws * prod config change * prod config change * fix campaing issue * revert Approved-by: Jay Sharma
This commit is contained in:
committed by
Jay Sharma
parent
779393381f
commit
22f10a9edd
@@ -716,6 +716,7 @@ class Yoast_Notification_Center {
|
||||
* @return void
|
||||
*/
|
||||
private function retrieve_notifications_from_storage( $user_id ) {
|
||||
|
||||
if ( $this->notifications_retrieved ) {
|
||||
return;
|
||||
}
|
||||
@@ -731,7 +732,6 @@ class Yoast_Notification_Center {
|
||||
|
||||
if ( is_array( $stored_notifications ) ) {
|
||||
$notifications = array_map( [ $this, 'array_to_notification' ], $stored_notifications );
|
||||
|
||||
// Apply array_values to ensure we get a 0-indexed array.
|
||||
$notifications = array_values( array_filter( $notifications, [ $this, 'filter_notification_current_user' ] ) );
|
||||
|
||||
@@ -841,13 +841,6 @@ class Yoast_Notification_Center {
|
||||
$notification_data['message'] = $notification_data['message']->present();
|
||||
}
|
||||
|
||||
if ( isset( $notification_data['options']['user'] ) ) {
|
||||
$notification_data['options']['user_id'] = $notification_data['options']['user']->ID;
|
||||
unset( $notification_data['options']['user'] );
|
||||
|
||||
$this->notifications_need_storage = true;
|
||||
}
|
||||
|
||||
return new Yoast_Notification(
|
||||
$notification_data['message'],
|
||||
$notification_data['options']
|
||||
|
||||
Reference in New Issue
Block a user