Saturday, 15 August 2015

WORDPRESS PHP Strict Standards: Redefining already defined constructor for class error -


I have a plugin for WordPress, and a client has strict criteria enabled. I have fixed most of the notices and warnings, but it is stumped to me. How can I fix this information in error reporting? What am I doing wrong for PHP?

Error: [13-Mar-2015 17:04:41 UTC] PHP strict criteria: redefining the already defined constructor for class GARD_PRO_CSE in D: \ home \ .

Code:

  if (strpos ($ $ globals) \ wwwroot \ wp-content \ plugins \ gard-pro \ insert.php [ 'GARD_PRO_CSE'] ['CSE'], 'CSE' and Class_Exists ('GARD_PRO_CSE')) {class increases GARD_PRO_CSE WP_Widget {Function GARD_PRO_CSE () {Origin: WP_Widget (wrong, $ name = "GARD Pro Custom Search Engine "); } Public Function __construct () {Origin: __ Construction ('GARD_PRO_CSE', // Base ID 'GARD Pro Custom Search Engine', // Name Array ('Description' = & gt; __ ("The Custom Google Search Engine Shows ", 'Text_domain'),) // Args); } // add_action ('widgets_init', create_function ('', 'return register_widget ("GARD_PRO_CSE");')) to delete deleted WP code WIDGET;); }  


No comments:

Post a Comment