[#20404] Fix custom webhook topic selection in dropdown

This commit is contained in:
Fulvio Notarstefano 2018-06-06 11:26:33 +09:00
parent 36c6aaf7a7
commit 264c83a166
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ if ( ! defined( 'ABSPATH' ) ) {
foreach ( $topics as $topic_slug => $topic_name ) :
?>
<option value="<?php echo esc_attr( $topic_slug ); ?>" <?php selected( $topic_data['topic'], $topic_slug, true ); ?>><?php echo esc_html( $topic_name ); ?></option>
<option value="<?php echo esc_attr( $topic_slug ); ?>" <?php selected( $topic_data['resource'] . '.' . $topic_data['event'], $topic_slug, true ); ?>><?php echo esc_html( $topic_name ); ?></option>
<?php endforeach; ?>
</select>
</td>