Skip to content

Commit e398a74

Browse files
committed
Put redirect URIs into inputs for better copying them
1 parent 8ec5893 commit e398a74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/app.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
<tr class="debug-hide">
7171
<th scope="row"><?php esc_html_e( 'Redirect URI', 'enable-mastodon-apps' ); ?></th>
7272
<td>
73-
<?php echo wp_kses( implode( '<br>', $app->get_redirect_uris() ), array( 'br' => array() ) ); ?>
73+
<?php foreach ( $app->get_redirect_uris() as $redirect_uri ) : ?>
74+
<input type="text" value="<?php echo esc_attr( $redirect_uri ); ?>" readonly onclick="this.select()" class="regular-text" /><br>
75+
<?php endforeach; ?>
7476
<p class="description">
7577
<span><?php esc_html_e( 'The URI to redirect to after the user authorizes the app.', 'enable-mastodon-apps' ); ?></span>
7678
<span>

0 commit comments

Comments
 (0)