Skip to content

Commit a975f92

Browse files
committed
Update shortcode prefix
1 parent 71d8163 commit a975f92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

InvoiceNinja/WordPress/PostApi.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,9 @@ public function clientPortalShortcode($atts)
403403
$url = rtrim( $url, '/' );
404404
$url = rtrim( $url, 'api/v1' );
405405
$url = rtrim( $url, '/' );
406+
if (! $url) {
407+
$url = 'https://invoicing.co';
408+
}
406409
$url .= '/client/key_login/' . $contact->contact_key;
407410
if ($atts['sso'] == 'true') {
408411
$url .= '?client_hash=' . $client->client_hash;
@@ -419,7 +422,7 @@ public function clientPortalShortcode($atts)
419422
?>
420423
<form method="post" action="">
421424
<?php wp_nonce_field('invoiceninja_client_portal', 'invoiceninja_nonce'); ?>
422-
<button type="submit"><?php echo esc_attr( $atts['label'] ) ?></button>
425+
<button type="submit" name="invoiceninja_client_portal"><?php echo esc_attr( $atts['label'] ) ?></button>
423426
</form>
424427
<?php
425428

0 commit comments

Comments
 (0)