PluginProbe
ActivityPub / 5.7.0
ActivityPub v5.7.0
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/class-notification.php +2 -10 9.2.05.7.0 View file →
@@ -8,10 +8,8 @@
8 8 namespace Activitypub;
9 9
10 10 /**
11 11 * Notification class.
12 - *
13 - * @deprecated 7.5.0 Use action hooks like 'activitypub_handled_{type}' instead.
14 12 */
15 13 class Notification {
16 14 /**
17 15 * The type of the notification.
@@ -49,10 +47,8 @@
49 47 * @param array $activity The Activity object.
50 48 * @param int $target The WordPress User-Id.
51 49 */
52 50 public function __construct( $type, $actor, $activity, $target ) {
53 - \_deprecated_class( __CLASS__, '7.5.0', 'Use action hooks like "activitypub_handled_{type}" instead.' );
54 -
55 51 $this->type = $type;
56 52 $this->actor = $actor;
57 53 $this->object = $activity;
58 54 $this->target = $target;
@@ -66,20 +62,16 @@
66 62
67 63 /**
68 64 * Action to send ActivityPub notifications.
69 65 *
70 - * @deprecated 7.5.0 Use "activitypub_handled_{$type}" instead.
71 - *
72 66 * @param Notification $instance The notification object.
73 67 */
74 - \do_action_deprecated( 'activitypub_notification', array( $this ), '7.5.0', "activitypub_handled_{$type}" );
68 + do_action( 'activitypub_notification', $this );
75 69
76 70 /**
77 71 * Type-specific action to send ActivityPub notifications.
78 72 *
79 - * @deprecated 7.5.0 Use "activitypub_handled_{$type}" instead.
80 - *
81 73 * @param Notification $instance The notification object.
82 74 */
83 - \do_action_deprecated( "activitypub_notification_{$type}", array( $this ), '7.5.0', "activitypub_handled_{$type}" );
75 + do_action( "activitypub_notification_{$type}", $this );
84 76 }
85 77 }