Skip to content

Commit

Permalink
Display whether loaded locally or mu
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Dec 10, 2024
1 parent 9198cd4 commit e73502b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vip-jetpack/vip-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,15 @@ function vip_filter_plugin_version_jetpack( $plugin_meta, $plugin_file ) {
}

if ( 'jetpack.php' === $plugin_file ) {
$version = defined( 'VIP_JETPACK_LOADED_VERSION' ) ? VIP_JETPACK_LOADED_VERSION : JETPACK__VERSION;
$type = defined( 'WPCOM_VIP_JETPACK_LOCAL' ) && WPCOM_VIP_JETPACK_LOCAL ? 'Local': 'MU-Plugins';
if ( defined( 'VIP_JETPACK_LOADED_VERSION' ) ) {
$version = VIP_JETPACK_LOADED_VERSION;
} else {
$version = JETPACK__VERSION;
}

/* translators: Loaded Jetpack version number */
$plugin_meta[0] = sprintf( esc_html__( 'Version %s' ), $version );
$plugin_meta[0] = sprintf( esc_html__( '%s - Version %s' ), $type, $version );
}

return $plugin_meta;
Expand Down

0 comments on commit e73502b

Please sign in to comment.