Using slightly modified widget

I am attempting to use a slightly modified form of a widget in the Hueman theme alongside its original version. The header is as follows

class AlxPostsFork extends WP_Widget {

/*  Constructor
/* ------------------------------------ */
function __construct() {
  __('Hueman Posts Fork', 'hueman'),
    'description' => __('Display posts from a category', 'huemanFork'),
    'classname' => 'widget_hu_posts_fork'

In Widgets.php (/wordpress/wp-includes/widgets.php) I have inserted the following line


And I am getting the following error:

Fatal error: Class ‘widget_hu_posts_fork’ not found in
C:wamp64wwwwordpresswp-includesclass-wp-widget-factory.php on
line 106

What am I doing wrong?

Read more here: Using slightly modified widget

Leave a Reply

Your email address will not be published. Required fields are marked *