PHP8.2环境下Elementor 编辑器出现Deprecated提示的解决办法

通过在container.php中定义变量来修复类定义

Fix:
PHP Deprecated:  Creation of dynamic property Elementor\Includes\Elements\Container::$logical_dimensions_inline_start is deprecated in /wp-content/plugins/elementor/includes/elements/container.php on line 42

PHP Deprecated:  Creation of dynamic property Elementor\Includes\Elements\Container::$logical_dimensions_inline_end is deprecated in /wp-content/plugins/elementor/includes/elements/container.php on line 43

文件位置:includes/elements/container.php

@@ -26,6 +26,8 @@ class Container extends Element_Base {
	 * @var \Elementor\Core\Kits\Documents\Kit
	 */
	private $active_kit;
	private $logical_dimensions_inline_start;
	private $logical_dimensions_inline_end;

	/**
	 * Container constructor.

原文链接:https://github.com/elementor/elementor/pull/23883/commits/2c57bbb71a4e715330e42ade80c0149f54800948