mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-04 12:45:45 +08:00
Fix an inconsistent error code in parse_did()
. (#191)
Signed-off-by: costdev <79332690+costdev@users.noreply.github.com>
This commit is contained in:
parent
907a3ce994
commit
cf2d590847
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ function parse_did( string $id ) {
|
||||||
return new Web( $id );
|
return new Web( $id );
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return new WP_Error( 'fair.packages.validate_id.invalid_method', __( 'Unsupported DID method.', 'fair' ) );
|
return new WP_Error( 'fair.packages.validate_did.invalid_method', __( 'Unsupported DID method.', 'fair' ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue