• Hi.
    There is a small incompatibility with php 7.

    FILE: /var/www/xxxx/wp-content/plugins/network-username-restrictions-override/network-username-restrictions-override.php

    WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.

    https://secure.php.net/manual/en/migration70.deprecated.php

    Methods that have the same name as the class they are defined in are deprecated
    class NetworkUsernameRestrictionsOverridePlugin {
    function NetworkUsernameRestrictionsOverridePlugin() {

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @dwc,
    same problem here. Would be great, if this could get an update.

    Thanks ??

    This worked for me with WordPress 4.8.2 running PHP7:

    On line 25 of network-username-restrictions-override.php, replace:

    function NetworkUsernameRestrictionsOverridePlugin() {

    with:

    function __construct(){

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘class style deprecated in php7’ is closed to new replies.