From a6dfca6d9fac96a7a6ab66b234629a634e6db046 Mon Sep 17 00:00:00 2001 From: David Stone <david@nnucomputerwhiz.com> Date: Wed, 18 Dec 2024 10:00:05 -0700 Subject: [PATCH] Fix ajax forms not loading because the ajax endpoint is not in WP_ADMIN --- inc/class-wp-ultimo.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/inc/class-wp-ultimo.php b/inc/class-wp-ultimo.php index 4d9e8f7..c0660dd 100644 --- a/inc/class-wp-ultimo.php +++ b/inc/class-wp-ultimo.php @@ -206,13 +206,11 @@ final class WP_Ultimo { do_action('wp_ultimo_load'); }); - if ( defined( 'WP_ADMIN' ) && WP_ADMIN ) { - /* - * Loads admin pages - * @todo: move this to a manager in the future? - */ - $this->load_admin_pages(); - } + /* + * Loads admin pages + * @todo: move this to a manager in the future? + */ + $this->load_admin_pages(); } // end init;