mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 20:53:39 +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 ) {
|
||||
|
||||
@@ -2303,7 +2303,7 @@ function um_get_default_cover_uri() {
|
||||
* @param $data
|
||||
* @param null $attrs
|
||||
*
|
||||
* @return string|array
|
||||
* @return int|string|array
|
||||
*/
|
||||
function um_user( $data, $attrs = null ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user