mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 21:23:39 +09:00
- fix user page blocks
This commit is contained in:
@@ -13,6 +13,11 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
|
||||
*/
|
||||
class Shortcodes {
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $forms_exist = array();
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
@@ -597,6 +602,14 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
|
||||
* @return string
|
||||
*/
|
||||
public function ultimatemember( $args = array() ) {
|
||||
if ( isset( $args['form_id'] ) ) {
|
||||
$id = $args['form_id'];
|
||||
if ( isset( $this->forms_exist[ $id ] ) && true === $this->forms_exist[ $id ] ) {
|
||||
return '';
|
||||
}
|
||||
$this->forms_exist[ $id ] = true;
|
||||
}
|
||||
|
||||
return $this->load( $args );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user