Skip to content

add default-popup-maker mu-plugin#43

Merged
julesfell merged 2 commits intomasterfrom
add/popupmaker-default
Mar 31, 2026
Merged

add default-popup-maker mu-plugin#43
julesfell merged 2 commits intomasterfrom
add/popupmaker-default

Conversation

@julesfell
Copy link
Copy Markdown
Contributor

@julesfell julesfell commented Mar 31, 2026

This pull request fixes issue #{id}.

It will apply the following changes :


Note

Low Risk
Low risk: adds a small MU plugin that only filters Popup Maker admin alerts and does not change data, auth, or front-end behavior.

Overview
Adds a new MU plugin (default-popup-maker.php) that filters Popup Maker’s pum_alert_list to remove the pum_writeable_notice (filesystem cache not writeable) alert, preventing that admin notice from being displayed.

Written by Cursor Bugbot for commit 0dd5e34. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Missing ABSPATH guard present in all other plugins
    • Added the missing ABSPATH guard after the namespace declaration to maintain consistency with all other mu-plugin files in the repository.

Create PR

Or push these changes by commenting:

@cursor push cc27b09ce2
Preview (cc27b09ce2)
diff --git a/default-popup-maker.php b/default-popup-maker.php
--- a/default-popup-maker.php
+++ b/default-popup-maker.php
@@ -9,6 +9,10 @@
 
 namespace BEAPI\Plugin_Defaults\Popup_Maker;
 
+if ( ! defined( 'ABSPATH' ) ) {
+	die( 'Cannot access pages directly.' );
+}
+
 add_filter( 'pum_alert_list', __NAMESPACE__ . '\\strip_filesystem_cache_alert', 999 );
 
 /**

This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

@julesfell julesfell merged commit 6d1a193 into master Mar 31, 2026
2 checks passed
@julesfell julesfell deleted the add/popupmaker-default branch March 31, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant