Changeset 3358086
- Timestamp:
- 09/08/2025 05:37:54 PM (7 months ago)
- Location:
- quick-ajax-post-loader/trunk
- Files:
-
- 40 added
- 2 deleted
- 2 edited
-
admin (deleted)
-
inc (deleted)
-
includes (added)
-
includes/admin (added)
-
includes/admin/admin-pages-config.php (added)
-
includes/admin/pages (added)
-
includes/admin/pages/help (added)
-
includes/admin/pages/help/help_en_US.json (added)
-
includes/admin/pages/settings-page.php (added)
-
includes/admin/pages/shortcode-page.php (added)
-
includes/ajax (added)
-
includes/ajax/actions.php (added)
-
includes/ajax/class-ajax.php (added)
-
includes/class-initializer.php (added)
-
includes/class-plugin-starter.php (added)
-
includes/deprecated (added)
-
includes/deprecated/class-deprecated-hooks-handler.php (added)
-
includes/enqueue (added)
-
includes/enqueue/class-enqueue-handler.php (added)
-
includes/enqueue/interface-enqueue-handler.php (added)
-
includes/form (added)
-
includes/form/class-form-field-builder.php (added)
-
includes/form/class-form-field-factory.php (added)
-
includes/form/class-form-field.php (added)
-
includes/form/interface-form-field.php (added)
-
includes/functions.php (added)
-
includes/maintenance (added)
-
includes/maintenance/class-activator.php (added)
-
includes/maintenance/class-updater.php (added)
-
includes/resources (added)
-
includes/resources/class-constants.php (added)
-
includes/resources/class-file-manager.php (added)
-
includes/resources/class-logger.php (added)
-
includes/resources/class-resource-manager.php (added)
-
includes/resources/class-utilities.php (added)
-
includes/resources/interface-file-manager.php (added)
-
includes/resources/interface-resource-manager.php (added)
-
includes/shortcode (added)
-
includes/shortcode/class-shortcode-generator.php (added)
-
includes/shortcode/class-shortcode.php (added)
-
includes/template-renderers (added)
-
includes/template-renderers/class-template-hooks.php (added)
-
quick-ajax-post-loader.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quick-ajax-post-loader/trunk/quick-ajax-post-loader.php
r3352831 r3358086 5 5 * Text Domain: quick-ajax-post-loader 6 6 * Domain Path: /languages 7 * Version: 1.8. 07 * Version: 1.8.1 8 8 * Description: Supercharge post loading with Quick Ajax Post Loader. Enhance user experience and optimize site performance using AJAX technology. 9 9 * Author: Pawel Grzelkowski … … 17 17 exit; 18 18 } 19 require_once plugin_dir_path(__FILE__) . 'inc/class-activator.php';20 register_activation_hook(__FILE__, ['QAPL_Quick_Ajax_Activator', 'activate']);21 19 22 function qapl_initialize_plugin() { 23 if (class_exists('QAPL_Quick_Ajax_Plugin_Starter')) { 24 function qapl_quick_ajax_admin_notice() { 25 echo '<div class="error"><p><strong>Quick Ajax Post Loader:</strong> A class named <strong>"QAPL_Quick_Ajax_Plugin_Starter"</strong> already exists, which may have been declared by another plugin.</p></div>'; 20 require_once plugin_dir_path(__FILE__) . 'includes/resources/class-constants.php'; 21 22 if (version_compare(PHP_VERSION, QAPL_Quick_Ajax_Constants::PLUGIN_MINIMUM_PHP_VERSION, '<')) { 23 add_action( 'admin_notices', static function () { 24 $message = sprintf( 25 __('This plugin requires PHP %1$s or higher. Your server is running %2$s.', 'quick-ajax-post-loader'), 26 QAPL_Quick_Ajax_Constants::PLUGIN_MINIMUM_PHP_VERSION, 27 PHP_VERSION 28 ); 29 echo '<div class="notice notice-error"><p><strong>Quick Ajax Post Loader:</strong> '.esc_html($message).'</p></div>'; 30 } ); 31 return; 32 } 33 34 global $wp_version; 35 if (version_compare($wp_version, QAPL_Quick_Ajax_Constants::PLUGIN_MINIMUM_WP_VERSION, '<')) { 36 add_action( 'admin_notices', static function () use ($wp_version) { 37 $message = sprintf( 38 __('This plugin was tested only with WordPress %1$s or higher. Your site is running %2$s. It may not work correctly.', 'quick-ajax-post-loader'), 39 QAPL_Quick_Ajax_Constants::PLUGIN_MINIMUM_WP_VERSION, 40 $wp_version 41 ); 42 echo '<div class="notice notice-warning"><p><strong>Quick Ajax Post Loader:</strong> '.esc_html($message).'</p></div>'; 43 } ); 44 } 45 46 register_activation_hook(plugin_basename(__FILE__), static function () { 47 // load activator only on activation 48 $activator_path = plugin_dir_path(__FILE__) . 'includes/maintenance/class-activator.php'; 49 if (!file_exists($activator_path)) { 50 if (defined('WP_DEBUG') && WP_DEBUG === true && defined('WP_DEBUG_LOG') && WP_DEBUG_LOG === true) { 51 error_log('Quick Ajax Post Loader: Missing class-activator.php during activation.'); 26 52 } 27 add_action('admin_notices', 'qapl_quick_ajax_admin_notice'); 28 }else{ 29 require_once(plugin_dir_path( __FILE__ ).'inc/class-helper.php'); 53 return; 30 54 } 55 require_once $activator_path; 56 if (!class_exists('QAPL_Quick_Ajax_Activator')) { 57 if (defined('WP_DEBUG') && WP_DEBUG === true && defined('WP_DEBUG_LOG') && WP_DEBUG_LOG === true) { 58 error_log('Quick Ajax Post Loader: QAPL_Quick_Ajax_Activator class not found after including activator.'); 59 } 60 return; 61 } 62 QAPL_Quick_Ajax_Activator::activate(); 63 }); 64 65 if (class_exists('QAPL_Quick_Ajax_Initializer')) { 66 add_action('admin_notices', static function () { 67 echo '<div class="notice notice-error"><p><strong>Quick Ajax Post Loader:</strong> Class QAPL_Quick_Ajax_Initializer already exists. Conflict detected. Plugin aborted.</p></div>'; 68 }); 69 return; 31 70 } 32 add_action('plugins_loaded', 'qapl_initialize_plugin'); 71 require_once plugin_dir_path(__FILE__) . 'includes/class-initializer.php'; 72 73 add_action('plugins_loaded', static function () { 74 QAPL_Quick_Ajax_Initializer::initialize(); 75 }); -
quick-ajax-post-loader/trunk/readme.txt
r3352831 r3358086 5 5 Requires at least: 5.6 6 6 Tested up to: 6.8 7 Stable tag: 1.8. 07 Stable tag: 1.8.1 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 106 106 == Changelog == 107 107 108 = 1.8.1 - 2025-09-08 = 109 - Improved plugin startup process with better class loading and dependency checks. 110 - Improved the way plugin scripts and styles are loaded for better reliability. 111 - Enhanced plugin stability by adding internal class verification before startup. 112 - Introduced internal logger with fallback to WordPress debug log. 113 - Cleaned up internal utility functions to support better error handling and production readiness. 114 108 115 = 1.8.0 - 2025-08-29 = 109 116 - Major internal refactoring to improve plugin stability and long-term reliability.
Note: See TracChangeset
for help on using the changeset viewer.