• Resolved TheVirus!

    (@rthevirus)


    Hi
    Thanks for awsome plugin!
    Currently plugin is incompatble with current WordPress.
    There 2 issues..

    1) After activating Option “Disable Rightclick”
    , login get disable with error message
    ERROR: Cookies are blocked due to unexpected output
    Please fix it.

    2) The called constructor method for WP_Widget in DMCA_Badge_Widget is deprecated since version 4.3.0!

    Fix for this ??

    I have edited plugin , please add this fix.

    */dmca-badge/classes/class-widget.php

    <?php
    
    class DMCA_Badge_Widget extends WP_Widget {
    
    	function __construct() {
    		parent::__construct(
    		   'dmca_widget_badge',
    			esc_html__( 'DMCA Website Protection Badge', 'dmca-badge' ),
    			array(
    				'description' => __( 'Display your chosen DMCA Website Protection Badge in any widget area of your site.', 'dmca-badge' ),
    			)
    		);
    	}
    
    	function widget( $args, $instance ){
    		echo $args['before_widget'];
    		echo DMCA_Badge_Plugin::this()->get_badge_html();
    		echo $args['after_widget'];
    	}
    
    }

    Thanks & Regards!
    TheVirus!

    Screenshot_2018_08_04_18_15_03_309_com_android_browser

    • This topic was modified 6 years, 7 months ago by TheVirus!. Reason: adding image
    • This topic was modified 6 years, 7 months ago by TheVirus!. Reason: adding image
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘After activating Option “Disable Rightclick” , login get disable’ is closed to new replies.