Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Created August 5, 2024 13:03
Show Gist options
  • Save rafaelmaeuer/8536f1a3cdb0fef5286e2e018317f2a8 to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/8536f1a3cdb0fef5286e2e018317f2a8 to your computer and use it in GitHub Desktop.

find public_html/wp-includes/class-wp-widget-factory.php and look at lines 62,63,64

        $this->widgets[ $widget ] = new $widget();
    }
}

if that is what you see then highlight all 3 lines and replace it with

        $this->widgets[ $widget ] = new $widget( $widget, $widget );
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment