remove filter
This commit is contained in:
parent
ec00ace234
commit
31e7e44642
1 changed files with 1 additions and 4 deletions
|
@ -239,10 +239,7 @@ function get_rest_url_by_path( $path = '' ) {
|
||||||
// we'll handle the leading slash.
|
// we'll handle the leading slash.
|
||||||
$path = ltrim( $path, '/' );
|
$path = ltrim( $path, '/' );
|
||||||
$namespaced_path = sprintf( '/%s/%s', ACTIVITYPUB_REST_NAMESPACE, $path );
|
$namespaced_path = sprintf( '/%s/%s', ACTIVITYPUB_REST_NAMESPACE, $path );
|
||||||
$rest_url = \get_rest_url( null, $namespaced_path );
|
return \get_rest_url( null, $namespaced_path );
|
||||||
// Just in case there are non-default ways of handling REST URLs.
|
|
||||||
$rest_url = \apply_filters( 'activitypub_rest_url', $rest_url, $path, ACTIVITYPUB_REST_NAMESPACE );
|
|
||||||
return $rest_url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue