diff --git a/changelog.txt b/changelog.txt index 0a6876b0..1d1cb14d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,12 @@ == Changelog == += 2.31.4 – 02 February 2025 = +* Added Compatibility for Events Manager. +* AIOSEO: Loaded plugin widgets. +* Refactored SEO plugin compatibility and restored Yoast Block Editor content parsing. +* Layout Directory: Resolved incorrect empty search after search query. +* WPML: Adjusted editor labels for the WPML 4.7 release. + = 2.31.3 – 20 December 2024 = * WPML: Improved compatibility by excluding `panels_data` field from automatic translation handling. * Prebuilt Layouts: Added text/html to accepted mime types for layout exports. diff --git a/compat/aioseo.php b/compat/aioseo.php new file mode 100644 index 00000000..973b20f7 --- /dev/null +++ b/compat/aioseo.php @@ -0,0 +1,12 @@ + __( 'WooCommerce', 'woocommerce' ), + 'title' => __( 'WooCommerce', 'siteorigin-panels' ), 'filter' => array( 'groups' => array( 'woocommerce' ), ), @@ -176,7 +176,7 @@ public function add_widgets_dialog_tabs( $tabs ) { if ( defined( 'JETPACK__VERSION' ) ) { $tabs[] = array( // TRANSLATORS: The name of WordPress plugin - 'title' => __( 'Jetpack', 'jetpack' ), + 'title' => __( 'Jetpack', 'siteorigin-panels' ), 'filter' => array( 'groups' => array( 'jetpack' ), ), @@ -187,7 +187,7 @@ public function add_widgets_dialog_tabs( $tabs ) { if ( function_exists( 'bbpress' ) ) { $tabs[] = array( // TRANSLATORS: The name of WordPress plugin - 'title' => __( 'BBPress', 'bbpress' ), + 'title' => __( 'BBPress', 'siteorigin-panels' ), 'filter' => array( 'groups' => array( 'bbpress' ), ), diff --git a/inc/compatibility.php b/inc/compatibility.php index bbe15b52..fcb4d682 100644 --- a/inc/compatibility.php +++ b/inc/compatibility.php @@ -7,8 +7,9 @@ class SiteOrigin_Panels_Compatibility { public function __construct() { $this->compat_path = plugin_dir_path( SITEORIGIN_PANELS_BASE_FILE ) . 'compat/'; - add_action( 'admin_init', array( $this, 'admin_init' ) ); - add_action( 'init', array( $this, 'init' ), 100 ); + add_action( 'admin_init', array( $this, 'admin_init' ), 10, 0 ); + add_action( 'init', array( $this, 'init' ), 100, 0 ); + add_action( 'widgets_init', array( $this, 'widgets_init' ), 1, 0 ); } public static function single() { @@ -115,5 +116,17 @@ function_exists( 'yoast_wpseo_video_seo_init' ) if ( class_exists( 'PUM_Site' )) { require_once $this->compat_path . 'popup-maker.php'; } + + // Compatibility with Events Manager. + if ( defined( 'EM_VERSION' ) ) { + require_once $this->compat_path . 'events-manager.php'; + } + } + + public function widgets_init() { + // Compatibility for All in One SEO. + if ( function_exists( 'aioseo' ) ) { + require_once $this->compat_path . 'aioseo.php'; + } } } diff --git a/inc/styles-admin.php b/inc/styles-admin.php index 564c7b09..3d33cb0e 100644 --- a/inc/styles-admin.php +++ b/inc/styles-admin.php @@ -161,7 +161,9 @@ public function render_styles_fields( $section, $before = '', $after = '', $curr ?>
-

+

+ +