@@ -29,6 +29,7 @@ public function handle_authorisation() {
2929 if ( empty ( $ _GET ['client_id ' ] ) ) {
3030 return new WP_Error (
3131 'oauth2.types.authorization_code.handle_authorisation.missing_client_id ' ,
32+ /* translators: %s: parameter name */
3233 sprintf ( __ ( 'Missing %s parameter. ' , 'oauth2 ' ), 'client_id ' )
3334 );
3435 }
@@ -43,6 +44,7 @@ public function handle_authorisation() {
4344 if ( empty ( $ client ) ) {
4445 return new WP_Error (
4546 'oauth2.types.authorization_code.handle_authorisation.invalid_client_id ' ,
47+ /* translators: %s: client ID */
4648 sprintf ( __ ( 'Client ID %s is invalid. ' , 'oauth2 ' ), $ client_id ),
4749 [
4850 'status ' => WP_Http::BAD_REQUEST ,
@@ -82,7 +84,7 @@ public function handle_authorisation() {
8284 $ error = new WP_Error (
8385 'oauth2.types.authorization_code.handle_authorisation.invalid_submit ' ,
8486 sprintf (
85- /** translators: %1$s is the translated "Authorize" button, %2$s is the translated "Cancel" button */
87+ /* translators: %1$s is the translated "Authorize" button, %2$s is the translated "Cancel" button */
8688 __ ( 'Select either %1$s or %2$s to continue. ' , 'oauth2 ' ),
8789 __ ( 'Authorize ' , 'oauth2 ' ),
8890 __ ( 'Cancel ' , 'oauth2 ' )
0 commit comments