Skip to content

Commit

Permalink
Merge pull request #85 from Automattic/fix/plugin-path
Browse files Browse the repository at this point in the history
Simplify the call to get_plugin_data
  • Loading branch information
jblz committed Mar 17, 2016
2 parents 1792574 + 1b9e049 commit d454e60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wp-cldr.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ function wp_cldr_settings() {
?>
<h2><?php esc_html_e( 'Active Version Information', 'wp-cldr' ); ?></h2>
<?php
$plugin_path = WP_PLUGIN_DIR . '/wp-cldr/wp-cldr.php';
$plugin_info = get_plugin_data( $plugin_path );
$plugin_info = get_plugin_data( __FILE__ );
?>
<ul>
<li><?php echo esc_html( sprintf( __( 'wp-cldr plugin version: %s', 'wp-cldr' ), $plugin_info['Version'] ) ); ?></li>
Expand Down

0 comments on commit d454e60

Please sign in to comment.