PluginProbe
ActivityPub / 9.2.1
ActivityPub v9.2.1
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/handler/class-delete.php +2 -2 8.2.19.2.1 View file →
@@ -155,9 +155,9 @@
155 155 public static function maybe_delete_follower( $activity ) {
156 156 $follower = Remote_Actors::get_by_uri( $activity['actor'] );
157 157
158 158 // Verify that Actor is deleted.
159 - if ( ! is_wp_error( $follower ) && Tombstone::exists( $activity['actor'] ) ) {
159 + if ( ! \is_wp_error( $follower ) && Tombstone::exists( $activity['actor'] ) ) {
160 160 self::maybe_delete_interactions( $follower->ID );
161 161 self::maybe_delete_posts( $follower->ID );
162 162 $state = Remote_Actors::delete( $follower->ID );
163 163 }
@@ -251,9 +251,9 @@
251 251
252 252 if ( $comments && Tombstone::exists( $id ) ) {
253 253 foreach ( $comments as $comment ) {
254 254 // WordPress will automatically delete all comment meta including _activitypub_remote_actor_id.
255 - wp_delete_comment( $comment->comment_ID, true );
255 + \wp_delete_comment( $comment->comment_ID, true );
256 256 }
257 257
258 258 return true;
259 259 }