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