mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 19:56:27 +09:00
- fixed [ultimatemember] shortcode using with a wrong|empty form_id;
This commit is contained in:
@@ -648,7 +648,11 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
|
||||
if ( ! array_key_exists( 'form_id', $args ) ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$this->form_id = $args['form_id'];
|
||||
if ( empty( $this->form_id ) ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$this->form_status = get_post_status( $this->form_id );
|
||||
if ( 'publish' !== $this->form_status ) {
|
||||
|
||||
Reference in New Issue
Block a user