' .
sprintf(
__(
'GeoIP collection is not enabled. Please go to setting page to enable GeoIP for getting more information and location (country) from the visitor.',
'wp-statistics'
),
admin_url( 'admin.php?page=wps_settings_page&tab=externals-settings' )
) .
'
';
}
// WP Statistics 10.0 had a bug which could corrupt the metabox display if the user re-ordered the widgets. Check to see if the meta data is corrupt and if so delete it.
$widget_order = get_user_meta( $WP_Statistics->user_id, 'meta-box-order_toplevel_page_wps_overview_page', true );
if ( is_array( $widget_order ) && count( $widget_order ) > 2 ) {
delete_user_meta( $WP_Statistics->user_id, 'meta-box-order_toplevel_page_wps_overview_page' );
}
// Add the about box here as metaboxes added on the actual page load cannot be closed.
add_meta_box(
'wps_about_postbox',
sprintf( __( 'About WP Statistics Version %s', 'wp-statistics' ), WP_Statistics::$reg['version'] ),
'wp_statistics_generate_overview_postbox_contents',
$WP_Statistics->menu_slugs['overview'],
'side',
null,
array( 'widget' => 'about' )
);
function wp_statistics_generate_overview_postbox_contents( $post, $args ) {
$loading_img = '