Fix ajax forms not loading because the ajax endpoint is not in WP_ADMIN
This commit is contained in:
@ -206,13 +206,11 @@ final class WP_Ultimo {
|
|||||||
do_action('wp_ultimo_load');
|
do_action('wp_ultimo_load');
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( defined( 'WP_ADMIN' ) && WP_ADMIN ) {
|
|
||||||
/*
|
/*
|
||||||
* Loads admin pages
|
* Loads admin pages
|
||||||
* @todo: move this to a manager in the future?
|
* @todo: move this to a manager in the future?
|
||||||
*/
|
*/
|
||||||
$this->load_admin_pages();
|
$this->load_admin_pages();
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
} // end init;
|
} // end init;
|
||||||
|
Reference in New Issue
Block a user