@@ -64,11 +64,15 @@ function safe_remote_get( $url ) {
64
64
/**
65
65
* Returns a users WebFinger "resource".
66
66
*
67
+ * @deprecated unreleased Use {@see \Activitypub\Webfinger::get_user_resource} instead.
68
+ *
67
69
* @param int $user_id The user ID.
68
70
*
69
71
* @return string The User resource.
70
72
*/
71
73
function get_webfinger_resource ( $ user_id ) {
74
+ \_deprecated_function ( __FUNCTION__ , 'unreleased ' , 'Activitypub\Webfinger::get_user_resource ' );
75
+
72
76
return Webfinger::get_user_resource ( $ user_id );
73
77
}
74
78
@@ -170,9 +174,13 @@ function url_to_authorid( $url ) {
170
174
/**
171
175
* Verify that url is a wp_ap_comment or a previously received remote comment.
172
176
*
177
+ * @deprecated unreleased
178
+ *
173
179
* @return int|bool Comment ID or false if not found.
174
180
*/
175
181
function is_comment () {
182
+ \_deprecated_function ( __FUNCTION__ , 'unreleased ' );
183
+
176
184
$ comment_id = get_query_var ( 'c ' , null );
177
185
178
186
if ( ! is_null ( $ comment_id ) ) {
@@ -483,11 +491,15 @@ function site_supports_blocks() {
483
491
/**
484
492
* Check if data is valid JSON.
485
493
*
494
+ * @deprecated unreleased Use {@see \json_decode} instead.
495
+ *
486
496
* @param string $data The data to check.
487
497
*
488
498
* @return boolean True if the data is JSON, false otherwise.
489
499
*/
490
500
function is_json ( $ data ) {
501
+ \_deprecated_function ( __FUNCTION__ , 'unreleased ' , 'json_decode ' );
502
+
491
503
return \is_array ( \json_decode ( $ data , true ) );
492
504
}
493
505
0 commit comments