PluginProbe
ActivityPub / 8.0.2
ActivityPub v8.0.2
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-quote-request.php +4 -4 9.2.08.0.2 View file →
@@ -98,9 +98,9 @@
98 98 * @param int|int[]|null $user_ids The user ID(s).
99 99 * @param string $type The type of the activity.
100 100 */
101 101 public static function handle_blocked_request( $activity, $user_ids, $type ) {
102 - if ( ! \in_array( \strtolower( $type ), array( 'quoterequest', 'quote_request' ), true ) ) {
102 + if ( ! in_array( strtolower( $type ), array( 'quoterequest', 'quote_request' ), true ) ) {
103 103 return;
104 104 }
105 105
106 106 // Extract the user ID (quote requests are always for a single user).
@@ -217,9 +217,9 @@
217 217
218 218 $activity_object['instrument'] = object_to_uri( $activity_object['instrument'] );
219 219
220 220 $post_meta = \get_post_meta( $post_id, '_activitypub_quoted_by', false );
221 - if ( \in_array( $activity_object['instrument'], $post_meta, true ) ) {
221 + if ( in_array( $activity_object['instrument'], $post_meta, true ) ) {
222 222 global $wpdb;
223 223
224 224 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
225 225 $meta_id = $wpdb->get_var(
@@ -234,9 +234,9 @@
234 234 $meta_id = \add_post_meta( $post_id, '_activitypub_quoted_by', $activity_object['instrument'] );
235 235 }
236 236
237 237 // Only send minimal data.
238 - $activity_object = \array_intersect_key(
238 + $activity_object = array_intersect_key(
239 239 $activity_object,
240 240 array(
241 241 'id' => 1,
242 242 'type' => 1,
@@ -286,9 +286,9 @@
286 286
287 287 $activity_object['instrument'] = object_to_uri( $activity_object['instrument'] );
288 288
289 289 // Only send minimal data.
290 - $activity_object = \array_intersect_key(
290 + $activity_object = array_intersect_key(
291 291 $activity_object,
292 292 array(
293 293 'id' => 1,
294 294 'type' => 1,