Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/wp-admin/authorize-application.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@
<?php
printf(
/* translators: %s: Application name. */
__( 'Would you like to give the application identifying itself as %s access to your account? You should only do this if you trust the application in question.' ),
__( 'Would you like to give the application identifying itself as %s access to your account? It will have the same capabilities as your account. Only approve this request if you initiated it from an application you trust.' ),
'<strong>' . esc_html( $app_name ) . '</strong>'
);
?>
</p>
<?php else : ?>
<p><?php _e( 'Would you like to give this application access to your account? You should only do this if you trust the application in question.' ); ?></p>
<p><?php _e( 'Would you like to give this application access to your account? It will have the same capabilities as your account. Only approve this request if you initiated it from an application you trust.' ); ?></p>
<?php endif; ?>

<?php
Expand Down
11 changes: 11 additions & 0 deletions tests/e2e/specs/profile/applications-passwords.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ test.describe( 'Manage applications passwords', () => {
);
} );

test( 'explains the access granted on the application authorization screen', async ( {
page,
applicationPasswords,
} ) => {
await applicationPasswords.get();
await page.goto( '/wp-admin/authorize-application.php?app_name=Test+Application' );

await expect( page.getByText( 'It will have the same capabilities as your account.' ) ).toBeVisible();
await expect( page.getByText( 'Only approve this request if you initiated it from an application you trust.' ) ).toBeVisible();
} );

test( 'should correctly revoke a single application password', async ( {
page,
applicationPasswords
Expand Down
Loading