Support » Plugin: WordPress Beta Tester » PHP 7 : Deprecated Methods

  • Resolved bigandy

    (@bigandy)


    I’m using php7 rc2 (updated WordPress to latest nightly – 4.4-alpha-34096 – using the plugin so that works!) and I am getting the following error message:

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wp_beta_tester has a deprecated constructor in <path-to-wordpress>/wp-content/plugins/wordpress-beta-tester/wp-beta-tester.php on line 26

    https://wordpress.org/plugins/wordpress-beta-tester/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same issue here. It’s tricky to test on the bleeding edge, when the plugin that helps you get to the bleeding edge uses deprecated methods!

    I think you need to use __construct() , it solved the error for me and seems to work ok now

    Change this on line 30 in the file wp-beta-tester.php

    function wp_beta_tester() {

    to this

    public function __construct() {

    Plugin Author Sergey Biryukov

    (@sergeybiryukov)

    WordPress Dev

    The PHP7 deprecated constructor notice is fixed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 7 : Deprecated Methods’ is closed to new replies.