Bad coding practice
-
Hello,
You are using this kind of code in your plugin multiple times:
if( !function_exists('wp_get_current_user') ) { require_once( ABSPATH . 'wp-includes/pluggable.php' ); }
This is completely wrong, and by including the pluggable file you are causing bugs with multiple plugins that trying to redeclare function from there.
if the function doesn’t exist for you, just wrap your code inside a proper hook.Please fix this issues.
- The topic ‘Bad coding practice’ is closed to new replies.