Skip to content

Commit 2a338bb

Browse files
committed
Fixed bug in Profile > Authorized Applications which failed to return the consumer name correctly.
1 parent bc98845 commit 2a338bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function json_oauth_profile_section( $user ) {
343343
<tbody>
344344
<?php foreach ( $approved as $row ): ?>
345345
<?php
346-
$application = rest_get_client( 'oauth1', $row['consumer'] );
346+
$application = get_post($row['consumer']);
347347
?>
348348
<tr>
349349
<td><?php echo esc_html( $application->post_title ) ?></td>

0 commit comments

Comments
 (0)