Tagged: , ,

Viewing 4 reply threads
  • Author
    Posts
    • #6299
      Nabil
      Member

      I’m using VVV (PHP 7.0.5-3…)

      I get this error:

      Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Piklist_Universal_Widget has a deprecated constructor in /srv/www/bayn/htdocs/wp-content/plugins/piklist/includes/class-piklist-universal-widget.php on line 15

    • #6301
      Jason
      Keymaster

      Hi! I assume you’re not using the trunk version of Piklist? This should be fixed in the latest trunk version.

      Thanks for reporting this!

    • #6309
      Nabil
      Member

      @Jason, I’m using trunk.

      I would guess changing the method name from Piklist_Universal_Widget to __constuct would fix that.

    • #6310
      Nabil
      Member

      Something like this

      
      Index: trunk/includes/class-piklist-universal-widget.php
      ===================================================================
      --- trunk/includes/class-piklist-universal-widget.php	(revision 1399025)
      +++ trunk/includes/class-piklist-universal-widget.php	(working copy)
      @@ -45,7 +45,7 @@
         public $widgets_path = '';
         
         /**
      -   * Piklist_Universal_Widget
      +   * __construct
          * Create a new universal widget.
          *
          * @param string $name The name.
      @@ -57,7 +57,7 @@
          * @static
          * @since 1.0
          */
      -  public function Piklist_Universal_Widget($name, $title, $description, $path = array(), $control_options = array()) 
      +  public function __construct($name, $title, $description, $path = array(), $control_options = array()) 
         {
           global $pagenow;
      
    • #6312
      Steve
      Keymaster

      @nabil_kadimi– Thanks for the patch! This will be fixed in the next version of Piklist. We appreciate the help.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.