diff --git a/CHANGELOG.md b/CHANGELOG.md index 10b3302af..8f0af8fb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ **Bug Fixes** +- Fixed fatal error when loading v2 extensions caused by conflicting `registered_controllers()` declarations on `PopupMaker\Plugin\Extension`. - Fixed the "Preview" button in the classic editor not opening popups — a regression introduced in 1.22.0. You can once again preview popups directly from the editor without having to save and view the live page. Thanks to @marklchaves for the fix. - Fixed missing styles for Popup Maker blocks on the front end in some installs — blocks now render with the correct styling without a console warning about a missing stylesheet. - Fixed "Disable popup open tracking" privacy setting not being fully respected — with analytics turned off, popup links no longer get tracking parameters appended and click beacons are no longer sent. diff --git a/classes/Plugin/Extension.php b/classes/Plugin/Extension.php index 32fb469f9..43e3d4178 100644 --- a/classes/Plugin/Extension.php +++ b/classes/Plugin/Extension.php @@ -13,6 +13,8 @@ /** * Abstract base class for all Popup Maker extensions. * + * Override {@see Container::registered_controllers()} in child classes. + * * @since 1.21.0 */ abstract class Extension extends Container { @@ -36,13 +38,6 @@ public function __construct( $config ) { $this->core = \PopupMaker\plugin(); } - /** - * Register all controllers. - * - * @return array - */ - abstract protected function registered_controllers(); - /** * Get core plugin instance. *