diff --git a/accepted-payment-methods.php b/accepted-payment-methods.php index 805e692..92d5619 100755 --- a/accepted-payment-methods.php +++ b/accepted-payment-methods.php @@ -185,9 +185,8 @@ function wc_accepted_payment_methods() { // The widget class Accepted_Payment_Methods extends WP_Widget { - function Accepted_Payment_Methods() { - // Instantiate the parent object - parent::__construct( false, 'WooCommerce Accepted Payment Methods' ); + function __construct() { + parent::__construct(false, 'WooCommerce Accepted Payment Methods' ); } function widget( $args, $instance ) {