Refactor plugin to use OOP best practices with proper namespaces and class structure
Some checks failed
ci/woodpecker/push/woodpecker Pipeline is pending
Build Release / Build and Create Release (push) Has been cancelled
Build Release / Deploy to WordPress.org (push) Has been cancelled
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2025-04-14 19:18:05 +01:00
parent 7c0dadac08
commit 15244dc687
10 changed files with 1230 additions and 1044 deletions

View File

@ -56,6 +56,15 @@ jQuery(document).ready(function($) {
// Separate handler for close button to ensure it works
$(document).on('click', '.fpden-close-modal', function(e) {
e.preventDefault();
e.stopPropagation(); // Prevent event bubbling
$('#fpden-update-source-modal').hide();
$('#fpden-modal-overlay').remove();
});
// Direct binding to the close button for extra reliability
$('.fpden-close-modal').on('click', function(e) {
e.preventDefault();
e.stopPropagation(); // Prevent event bubbling
$('#fpden-update-source-modal').hide();
$('#fpden-modal-overlay').remove();
});

View File

@ -8,7 +8,7 @@
'use strict';
// Current plugin version - this should match the version in the main plugin file
const CURRENT_VERSION = '2.1.1';
const CURRENT_VERSION = '2.2.0';
// Plugin slugs to check for
const OUR_SLUGS = ['wp-fix-plugin-does-not-exist-notices', 'fix-plugin-does-not-exist-notices'];