Fix - Active plugins display on status page.
This commit is contained in:
parent
53c5fbee40
commit
6c2e00c1c7
|
@ -102,21 +102,17 @@ function woocommerce_status() {
|
|||
if ( is_multisite() )
|
||||
$active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
|
||||
|
||||
$active_plugins = array_map( 'strtolower', $active_plugins );
|
||||
|
||||
$wc_plugins = array();
|
||||
|
||||
foreach ( $active_plugins as $plugin ) {
|
||||
//if ( strstr( $plugin, 'woocommerce' ) ) {
|
||||
|
||||
$plugin_data = @get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
$plugin_data = @get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
|
||||
if ( ! empty( $plugin_data['Name'] ) ) {
|
||||
if ( ! empty( $plugin_data['Name'] ) ) {
|
||||
|
||||
$wc_plugins[] = $plugin_data['Name'] . ' ' . __('by', 'woocommerce') . ' ' . $plugin_data['Author'] . ' ' . __('version', 'woocommerce') . ' ' . $plugin_data['Version'];
|
||||
$wc_plugins[] = $plugin_data['Name'] . ' ' . __('by', 'woocommerce') . ' ' . $plugin_data['Author'] . ' ' . __('version', 'woocommerce') . ' ' . $plugin_data['Version'];
|
||||
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
if ( sizeof( $wc_plugins ) == 0 ) echo '-'; else echo '<ul><li>' . implode( ', </li><li>', $wc_plugins ) . '</li></ul>';
|
||||
|
|
|
@ -156,6 +156,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - On add to cart success, redirect back.
|
||||
* Fix - Added more error messages for coupons.
|
||||
* Fix - Variation sku updating after selection.
|
||||
* Fix - Active plugins display on status page.
|
||||
* Localization - French update by Arnaud Cheminand
|
||||
|
||||
= 1.6.5.1 - 25/08/2012 =
|
||||
|
|
Loading…
Reference in New Issue