Skip to content

Commit

Permalink
custom status module: fix the status name and description not working…
Browse files Browse the repository at this point in the history
… correctly due to spacing problems
  • Loading branch information
ingeniumed committed Jun 25, 2024
1 parent 7b42f6a commit 567ee48
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions modules/custom-status/custom-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -1334,22 +1334,12 @@ public function print_configure_view() {
<form class="add:the-list:" action="<?php echo esc_url( $this->get_link() ); ?>" method="post" id="addstatus" name="addstatus">
<div class="form-field form-required">
<label for="status_name"><?php _e( 'Name', 'edit-flow' ); ?></label>
<input type="text" aria-required="true" size="20" maxlength="20" id="status_name" name="status_name" value="
<?php
if ( ! empty( $_POST['status_name'] ) ) {
echo esc_attr( $_POST['status_name'] );}
?>
" />
<input type="text" aria-required="true" size="20" maxlength="20" id="status_name" name="status_name" value="<?php /* phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed */ if ( ! empty( $_POST['status_name'] ) ) echo esc_attr( $_POST['status_name'] ); ?>" />
<?php $edit_flow->settings->helper_print_error_or_description( 'name', __( 'The name is used to identify the status. (Max: 20 characters)', 'edit-flow' ) ); ?>
</div>
<div class="form-field">
<label for="status_description"><?php _e( 'Description', 'edit-flow' ); ?></label>
<textarea cols="40" rows="5" id="status_description" name="status_description">
<?php
if ( ! empty( $_POST['status_description'] ) ) {
echo esc_textarea( $_POST['status_description'] );}
?>
</textarea>
<textarea cols="40" rows="5" id="status_description" name="status_description"><?php /* phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed */ if ( ! empty( $_POST['status_description'] ) ) echo esc_textarea( $_POST['status_description'] ); ?></textarea>
<?php $edit_flow->settings->helper_print_error_or_description( 'description', __( 'The description is primarily for administrative use, to give you some context on what the custom status is to be used for.', 'edit-flow' ) ); ?>
</div>
<?php wp_nonce_field( 'custom-status-add-nonce' ); ?>
Expand Down

0 comments on commit 567ee48

Please sign in to comment.