Tagged: bug, deprecated, php7
- This topic has 4 replies, 3 voices, and was last updated 5 years, 9 months ago by
Steve.
Viewing 4 reply threads
-
AuthorPosts
-
-
April 17, 2016 at 3:52 pm #6299
NabilMemberI’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
-
April 18, 2016 at 11:43 pm #6301
JasonKeymasterHi! I assume you’re not using the trunk version of Piklist? This should be fixed in the latest trunk version.
Thanks for reporting this!
-
April 19, 2016 at 3:38 am #6309
-
April 19, 2016 at 3:57 am #6310
NabilMemberSomething 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; -
April 19, 2016 at 9:57 am #6312
SteveKeymaster@nabil_kadimi– Thanks for the patch! This will be fixed in the next version of Piklist. We appreciate the help.
-
-
AuthorPosts
Viewing 4 reply threads
- You must be logged in to reply to this topic.