Release 1.0.4

This commit is contained in:
2026-04-14 21:33:43 +02:00
parent d4d6e9ddf1
commit 2d8942c8b0

View File

@@ -2,7 +2,7 @@
/**
* Plugin Name: KGV Rollen Manager
* Description: Erstellt zusätzliche WordPress-Rollen und vergibt Rechte direkt im Backend.
* Version: 1.0.3
* Version: 1.0.4
* Author: Ronny Grobel
* Author URI: https://apex-project.de/
* Text Domain: kgv-role-manager
@@ -349,20 +349,20 @@ final class KGV_Rollen_Manager {
<tbody>
<tr>
<th scope="row"><label for="role_name"><?php esc_html_e( 'Rollenname', 'kgv-role-manager' ); ?></label></th>
<td><input name="role_name" id="role_name" type="text" class="regular-text" required value="<?php echo esc_attr( $edit_data['name'] ?? '' ); ?>"></td>
<td><input name="role_name" id="role_name" type="text" class="regular-text" style="max-width:320px;width:100%;" required value="<?php echo esc_attr( $edit_data['name'] ?? '' ); ?>"></td>
</tr>
<?php if ( ! $edit_data ) : ?>
<tr>
<th scope="row"><label for="role_slug"><?php esc_html_e( 'Rollen-Slug', 'kgv-role-manager' ); ?></label></th>
<td>
<input name="role_slug" id="role_slug" type="text" class="regular-text" value="">
<input name="role_slug" id="role_slug" type="text" class="regular-text" style="max-width:320px;width:100%;" value="">
<p class="description"><?php esc_html_e( 'Nur Kleinbuchstaben, Zahlen und Unterstriche. Leer lassen = automatisch aus dem Namen erzeugen.', 'kgv-role-manager' ); ?></p>
</td>
</tr>
<tr>
<th scope="row"><label for="source_role"><?php esc_html_e( 'Vorlage', 'kgv-role-manager' ); ?></label></th>
<td>
<select name="source_role" id="source_role">
<select name="source_role" id="source_role" style="max-width:320px;width:100%;">
<option value=""><?php esc_html_e( 'Keine Vorlage', 'kgv-role-manager' ); ?></option>
<?php foreach ( $all_roles as $role_key => $role_data ) : ?>
<option value="<?php echo esc_attr( $role_key ); ?>"><?php echo esc_html( translate_user_role( $role_data['name'] ) . ' (' . $role_key . ')' ); ?></option>