- fixed email notifications status at list table;

This commit is contained in:
nikitozzzzzzz
2017-11-16 12:19:05 +02:00
parent 31c3ad62c0
commit b6e39844af
@@ -135,8 +135,7 @@ class UM_Emails_List_Table extends WP_List_Table {
function column_email( $item ) {
$active = um_get_option( $item['key'] . '_on' );
if ( $active === '' )
$active = ! empty( $item['default_active'] );
return '<span class="dashicons um-notification-status ' . ( ! empty( $active ) ? 'um-notification-is-active dashicons-yes' : 'dashicons-no-alt' ) . '"></span><a href="' . add_query_arg( array( 'email' => $item['key'] ) ) . '"><strong>'. $item['title'] . '</strong></a>';
}