| @@ -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 | } |