• Resolved Mike Crantea

    (@mihai2u)


    Hey,

    I’m getting this notice in PHP, and the fix is quite simple:

    The called constructor method for WP_Widget in JobmanLatestJobsWidget is deprecated since version 4.3.0! Use

    __construct()

    instead.

    I’ve done the change by placing all 4 Widget constructors by something along these lines:

    function __construct() {
    			parent::__construct(
    				'jobmanlatestjobs_widget',
    				__( 'Job Manager: Recent Jobs', 'jobman'),
    				array( 'description' => __( 'A list of the most recent jobs posted to your site', 'jobman' ) )
    			);
    }

    I searched and did not find a github repository for this plug-in, or I would’ve sent this in with a pull request.
    what’s the preferred method for contributing ?

    Thanks!

    https://wordpress.org/plugins/job-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to contribute? constructor method for WP_Widget deprecated’ is closed to new replies.