File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments