Skip to content

Commit ab42efc

Browse files
committed
Merge pull request #101 from kosso/renaissance
Fixed bug in Profile > Authorized Applications
2 parents bc98845 + a54d1fd commit ab42efc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

admin.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,16 +334,17 @@ function json_oauth_profile_section( $user ) {
334334
<th scope="row"><?php _e( 'Authorized Applications', 'json_oauth' ) ?></th>
335335
<td>
336336
<?php if ( ! empty( $approved ) ): ?>
337-
<table class="widefat sessions-table">
337+
<table class="widefat">
338338
<thead>
339339
<tr>
340-
<th scope="col"><?php _e( 'Application Name', 'wpsm' ); ?></th>
340+
<th style="padding-left:10px;"><?php _e( 'Application Name', 'wpsm' ); ?></th>
341+
<th></th>
341342
</tr>
342343
</thead>
343344
<tbody>
344345
<?php foreach ( $approved as $row ): ?>
345346
<?php
346-
$application = rest_get_client( 'oauth1', $row['consumer'] );
347+
$application = get_post($row['consumer']);
347348
?>
348349
<tr>
349350
<td><?php echo esc_html( $application->post_title ) ?></td>

0 commit comments

Comments
 (0)