From 453acb73298cf923a4f8053a98b4fbcd0381a1f7 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Wed, 21 Aug 2019 15:06:48 +0200 Subject: [PATCH] fixed PHP warnings --- README.md | 4 ++++ activitypub.php | 2 +- includes/functions.php | 2 +- languages/activitypub.pot | 4 ++-- readme.txt | 4 ++++ 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bd133f5..5d37bec 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,10 @@ Where 'blog' is the path to the subdirectory at which your blog resides. Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub). +### 0.8.1 ### + +* fixed PHP warnings + ### 0.8.0 ### * Moved followers list to user-menu diff --git a/activitypub.php b/activitypub.php index 7082409..3892e16 100644 --- a/activitypub.php +++ b/activitypub.php @@ -3,7 +3,7 @@ * Plugin Name: ActivityPub * Plugin URI: https://github.com/pfefferle/wordpress-activitypub/ * Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format. - * Version: 0.8.0 + * Version: 0.8.1 * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ * License: MIT diff --git a/includes/functions.php b/includes/functions.php index 3efe5d2..5fb8f19 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -188,7 +188,7 @@ function get_follower_inboxes( $user_id ) { foreach ( $followers as $follower ) { $inbox = \Activitypub\get_inbox_by_actor( $follower ); - if ( ! $inbox ) { + if ( ! $inbox || is_wp_error( $inbox ) ) { continue; } // init array if empty diff --git a/languages/activitypub.pot b/languages/activitypub.pot index 1b3666d..ea2af4c 100644 --- a/languages/activitypub.pot +++ b/languages/activitypub.pot @@ -2,10 +2,10 @@ # This file is distributed under the MIT. msgid "" msgstr "" -"Project-Id-Version: ActivityPub 0.8.0\n" +"Project-Id-Version: ActivityPub 0.8.1\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/wordpress-activitypub\n" -"POT-Creation-Date: 2019-08-21 08:37:52+00:00\n" +"POT-Creation-Date: 2019-08-21 13:03:57+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/readme.txt b/readme.txt index fa8d90e..ccf9c5a 100644 --- a/readme.txt +++ b/readme.txt @@ -84,6 +84,10 @@ Where 'blog' is the path to the subdirectory at which your blog resides. Project maintained on GitHub at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub). += 0.8.1 = + +* fixed PHP warnings + = 0.8.0 = * Moved followers list to user-menu