Home Forums Plugins WordPress Lucky Wheel Creation of dynamic property VillaTheme_Support_Pro::$data is deprecated in /hom

Creation of dynamic property VillaTheme_Support_Pro::$data is deprecated in /hom

  • Author
    Posts
  • #169020

    Martijn Symaeys
    Participant

    When we activated the plugin we still get this error:

    Deprecated: Creation of dynamic property VillaTheme_Support_Pro::$data is deprecated in /home/yptetze/www/wp-content/plugins/wordpress-lucky-wheel/includes/support.php on line 17

    You send me a fix, but that didn’t fix it.

    Changing
    class VillaTheme_Support_Pro {
    protected $plugin_base_name;

    to:
    class VillaTheme_Support_Pro {
    protected $plugin_base_name;
    public $data;

    seemingly fixed it, though I don’t know for sure that public is the right keyword for what they intended. They created it as a dynamic property of the class, so I think it was technically public before, but who knows if that’s what they originally intended.

    Please release a new version with this fix.

You must be logged in to see replies to this topic. Click here to login or register