• /inc/widget.php

    – Deprecated PHP4 style constructor are not supported since PHP7

    I figure

    function wp_fanzone_recent_posts() {
        parent::__construct( 'wp_fanzone_recent_posts', $name = 'FanZone Recent Post' );
    }

    should be changed to:

    function __construct() {
         $this->wp_fanzone_recent_posts();
    }
    
    function wp_fanzone_recent_posts() {
    	parent::__construct( 'wp_fanzone_recent_posts', $name = 'FanZone Recent Post' );
    	}
  • The topic ‘PHP 7 Compatibility issue – Constructor using PHP4 Style’ is closed to new replies.