Merge pull request #25584 from woocommerce/add/SSR-include-new-packages
Added info about packages to System Status Report
This commit is contained in:
commit
827458f500
|
@ -82,6 +82,66 @@ $untested_plugins = $plugin_updates->get_untested_plugins( WC()->version, 'min
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td data-export-label="WC Blocks Version"><?php esc_html_e( 'WooCommerce Blocks package', 'woocommerce' ); ?>:</td>
|
||||||
|
<td class="help"><?php echo wc_help_tip( esc_html__( 'The WooCommerce Blocks package running on your site.', 'woocommerce' ) ); ?></td>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
if ( class_exists( '\Automattic\WooCommerce\Blocks\Package' ) ) {
|
||||||
|
$version = \Automattic\WooCommerce\Blocks\Package::get_version();
|
||||||
|
$path = \Automattic\WooCommerce\Blocks\Package::get_path();
|
||||||
|
} else {
|
||||||
|
$version = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! is_null( $version ) ) {
|
||||||
|
echo '<mark class="yes"><span class="dashicons dashicons-yes"></span> ' . esc_html( $version ) . ' <code class="private">' . esc_html( $path ) . '</code></mark> ';
|
||||||
|
} else {
|
||||||
|
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Unable to detect the Blocks package.', 'woocommerce' ) . '</mark>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td data-export-label="Action Scheduler Version"><?php esc_html_e( 'Action Scheduler package', 'woocommerce' ); ?>:</td>
|
||||||
|
<td class="help"><?php echo wc_help_tip( esc_html__( 'Action Scheduler package running on your site.', 'woocommerce' ) ); ?></td>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
if ( class_exists( 'ActionScheduler_Versions' ) && class_exists( 'ActionScheduler' ) ) {
|
||||||
|
$version = ActionScheduler_Versions::instance()->latest_version();
|
||||||
|
$path = ActionScheduler::plugin_path( '' );
|
||||||
|
} else {
|
||||||
|
$version = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! is_null( $version ) ) {
|
||||||
|
echo '<mark class="yes"><span class="dashicons dashicons-yes"></span> ' . esc_html( $version ) . ' <code class="private">' . esc_html( $path ) . '</code></mark> ';
|
||||||
|
} else {
|
||||||
|
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Unable to detect the Action Scheduler package.', 'woocommerce' ) . '</mark>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td data-export-label="WC Admin Version"><?php esc_html_e( 'WooCommerce Admin package', 'woocommerce' ); ?>:</td>
|
||||||
|
<td class="help"><?php echo wc_help_tip( esc_html__( 'The WooCommerce Admin package running on your site.', 'woocommerce' ) ); ?></td>
|
||||||
|
<td>
|
||||||
|
<?php
|
||||||
|
if ( class_exists( '\Automattic\WooCommerce\Admin\Package' ) ) {
|
||||||
|
$version = \Automattic\WooCommerce\Admin\Package::get_version();
|
||||||
|
$path = \Automattic\WooCommerce\Admin\Package::get_path();
|
||||||
|
} else {
|
||||||
|
$version = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! is_null( $version ) ) {
|
||||||
|
echo '<mark class="yes"><span class="dashicons dashicons-yes"></span> ' . esc_html( $version ) . ' <code class="private">' . esc_html( $path ) . '</code></mark> ';
|
||||||
|
} else {
|
||||||
|
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Unable to detect the WC Admin package.', 'woocommerce' ) . '</mark>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td data-export-label="Log Directory Writable"><?php esc_html_e( 'Log directory writable', 'woocommerce' ); ?>:</td>
|
<td data-export-label="Log Directory Writable"><?php esc_html_e( 'Log directory writable', 'woocommerce' ); ?>:</td>
|
||||||
<td class="help"><?php echo wc_help_tip( esc_html__( 'Several WooCommerce extensions can write logs which makes debugging problems easier. The directory must be writable for this to happen.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td>
|
<td class="help"><?php echo wc_help_tip( esc_html__( 'Several WooCommerce extensions can write logs which makes debugging problems easier. The directory must be writable for this to happen.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td>
|
||||||
|
|
Loading…
Reference in New Issue