Skip to content

Commit

Permalink
Merge pull request #2720 from kimcoleman/v3.0
Browse files Browse the repository at this point in the history
Removing unnecessary message on new order add
  • Loading branch information
kimcoleman authored Dec 8, 2023
2 parents b7e3e07 + 01dc53a commit 160c2ea
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions adminpages/orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,6 @@
}
?>
<p class="description"><?php esc_html_e( 'A randomly generated code that serves as a unique, non-sequential invoice number.', 'paid-memberships-pro' ); ?></p>
<?php if ( $order_id < 0 ) { ?>
<p class="description"><?php esc_html_e( 'Randomly generated for you.', 'paid-memberships-pro' ); ?></p>
<?php } ?>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -719,10 +716,9 @@
<?php
if ( in_array( 'accountnumber', $read_only_fields ) && $order_id > 0 ) {
echo esc_html( $order->accountnumber );
} else {
?>
<input id="accountnumber" name="accountnumber" type="text" size="50"
value="<?php echo esc_attr( $order->accountnumber ); ?>"/>
} else { ?>
<input id="accountnumber" name="accountnumber" type="text" size="50"
value="<?php echo esc_attr( $order->accountnumber ); ?>"/>
<?php } ?>
<p class="description"><?php esc_html_e( 'Only the last 4 digits are stored in this site to use as a reference with the gateway.', 'paid-memberships-pro' ); ?></p>
</td>
Expand Down

0 comments on commit 160c2ea

Please sign in to comment.