-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docblocks completed, translation fixes, whoop compatibility bug fixes #5
Conversation
@@ -28,18 +28,32 @@ | |||
* | |||
* @since 0.0.1 | |||
* @package BuddyPress_Compliments | |||
* | |||
* @global object $bp BuddyPress instance. | |||
* @global object $wpdb WordPress db object. | |||
*/ | |||
function bp_compliments_init() { | |||
global $wpdb, $bp; | |||
// get plugin version from plugin data. | |||
$plugin_data = get_plugin_data( __FILE__ ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Giri, this is not the best way to get the version number, the function get_plugin_data will have to read the file contents just simply to get the version number when you could simply just write it again in the file, please don't ever do it this way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Got it.
docblocks completed, translation fixes, whoop compatibility bug fixes
No description provided.