Skip to content

Commit cc77388

Browse files
committed
display under code tag
1 parent ff99cba commit cc77388

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

includes/Admin.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ public function scripts(): void {
109109
this.checked = mode === 'all';
110110
} );
111111
} );
112+
jQuery( '[id^=augment-types_][id$=_enabled]' ).each( function() {
113+
jQuery( this ).find( 'label' ).each( function() {
114+
jQuery( this ).html( jQuery( this ).html().replace( /###([^#]+)###/, '<code>$1</code>' ) );
115+
} );
116+
} );
112117
</script>
113118
<?php
114119

@@ -149,7 +154,7 @@ protected function checklist_field( array $options ): array {
149154
$keys = array();
150155

151156
foreach ( $options as $option ) {
152-
$types[ $option->name ] = sprintf( '%s (%s)', $option->label, $option->name );
157+
$types[ $option->name ] = sprintf( '%s ###%s###', $option->label, $option->name );
153158

154159
$keys[] = $option->name;
155160
}

0 commit comments

Comments
 (0)