auto-patch 638-dev-dev01-2024-05-14T20_44_36
This commit is contained in:
@@ -57,7 +57,7 @@ $current_section_name = __( 'Browse Categories', 'woocommerce' );
|
||||
>
|
||||
<?php
|
||||
$count_html = WC_Helper_Updater::get_updates_count_html();
|
||||
/* translators: %s: Woo.com Subscriptions tab count HTML. */
|
||||
/* translators: %s: WooCommerce.com Subscriptions tab count HTML. */
|
||||
echo ( wp_kses_post( sprintf( __( 'My Subscriptions %s', 'woocommerce' ), $count_html ) ) );
|
||||
?>
|
||||
</a>
|
||||
@@ -131,12 +131,12 @@ $current_section_name = __( 'Browse Categories', 'woocommerce' );
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?php /* translators: a url */ ?>
|
||||
<p><?php printf( wp_kses_post( __( 'Our catalog of WooCommerce Extensions can be found on Woo.com here: <a href="%s">WooCommerce Extensions Catalog</a>', 'woocommerce' ) ), 'https://woo.com/product-category/woocommerce-extensions/' ); ?></p>
|
||||
<p><?php printf( wp_kses_post( __( 'Our catalog of WooCommerce Extensions can be found on WooCommerce.com here: <a href="%s">WooCommerce Extensions Catalog</a>', 'woocommerce' ) ), 'https://woocommerce.com/product-category/woocommerce-extensions/' ); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( 'Storefront' !== $theme['Name'] && '_featured' !== $current_section ) : ?>
|
||||
<?php
|
||||
$storefront_url = WC_Admin_Addons::add_in_app_purchase_url_params( 'https://woo.com/products/storefront/?utm_source=extensionsscreen&utm_medium=product&utm_campaign=wcaddon' );
|
||||
$storefront_url = WC_Admin_Addons::add_in_app_purchase_url_params( 'https://woocommerce.com/products/storefront/?utm_source=extensionsscreen&utm_medium=product&utm_campaign=wcaddon' );
|
||||
?>
|
||||
<div class="storefront">
|
||||
<h2><?php esc_html_e( 'Looking for a WooCommerce theme?', 'woocommerce' ); ?></h2>
|
||||
|
||||
@@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
<strong>
|
||||
<?php
|
||||
/* translators: 1: Link URL */
|
||||
echo wp_kses_post( sprintf( __( 'With the release of WooCommerce 4.0, these reports are being replaced. There is a new and better Analytics section available for users running WordPress 5.3+. Head on over to the <a href="%1$s">WooCommerce Analytics</a> or learn more about the new experience in the <a href="https://woo.com/document/woocommerce-analytics/" target="_blank">WooCommerce Analytics documentation</a>.', 'woocommerce' ), esc_url( wc_admin_url( '&path=/analytics/overview' ) ) ) );
|
||||
echo wp_kses_post( sprintf( __( 'With the release of WooCommerce 4.0, these reports are being replaced. There is a new and better Analytics section available for users running WordPress 5.3+. Head on over to the <a href="%1$s">WooCommerce Analytics</a> or learn more about the new experience in the <a href="https://woocommerce.com/document/woocommerce-analytics/" target="_blank">WooCommerce Analytics documentation</a>.', 'woocommerce' ), esc_url( wc_admin_url( '&path=/analytics/overview' ) ) ) );
|
||||
?>
|
||||
</strong>
|
||||
</p>
|
||||
|
||||
@@ -5,10 +5,14 @@
|
||||
* @package WooCommerce\Admin\Logs
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Utilities\LoggingUtil;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$log_directory = LoggingUtil::get_log_directory();
|
||||
|
||||
?>
|
||||
<?php if ( $logs ) : ?>
|
||||
<div id="log-viewer-select">
|
||||
@@ -25,7 +29,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
<select class="wc-enhanced-select" name="log_file">
|
||||
<?php foreach ( $logs as $log_key => $log_file ) : ?>
|
||||
<?php
|
||||
$timestamp = filemtime( WC_LOG_DIR . $log_file );
|
||||
$timestamp = filemtime( $log_directory . $log_file );
|
||||
$date = sprintf(
|
||||
/* translators: 1: last access date 2: last access time 3: last access timezone abbreviation */
|
||||
__( '%1$s at %2$s %3$s', 'woocommerce' ),
|
||||
@@ -43,7 +47,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="log-viewer">
|
||||
<pre><?php echo esc_html( file_get_contents( WC_LOG_DIR . $viewed_log ) ); ?></pre>
|
||||
<pre><?php echo esc_html( file_get_contents( $log_directory . $viewed_log ) ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents ?></pre>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="updated woocommerce-message inline"><p><?php esc_html_e( 'There are currently no logs to view.', 'woocommerce' ); ?></p></div>
|
||||
|
||||
@@ -36,7 +36,7 @@ $inactive_plugins_count = is_countable( $inactive_plugins ) ? count( $inactive_p
|
||||
</p>
|
||||
<p class="submit">
|
||||
<a href="#" class="button-primary debug-report"><?php esc_html_e( 'Get system report', 'woocommerce' ); ?></a>
|
||||
<a class="button-secondary docs" href="https://woo.com/document/understanding-the-woocommerce-system-status-report/" target="_blank">
|
||||
<a class="button-secondary docs" href="https://woocommerce.com/document/understanding-the-woocommerce-system-status-report/" target="_blank">
|
||||
<?php esc_html_e( 'Understanding the status report', 'woocommerce' ); ?>
|
||||
</a>
|
||||
</p>
|
||||
@@ -120,8 +120,14 @@ $inactive_plugins_count = is_countable( $inactive_plugins ) ? count( $inactive_p
|
||||
if ( $environment['log_directory_writable'] ) {
|
||||
echo '<mark class="yes"><span class="dashicons dashicons-yes"></span> <code class="private">' . esc_html( $environment['log_directory'] ) . '</code></mark> ';
|
||||
} else {
|
||||
/* Translators: %1$s: Log directory, %2$s: Log directory constant */
|
||||
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'To allow logging, make %1$s writable or define a custom %2$s.', 'woocommerce' ), '<code>' . esc_html( $environment['log_directory'] ) . '</code>', '<code>WC_LOG_DIR</code>' ) . '</mark>';
|
||||
printf(
|
||||
'<mark class="error"><span class="dashicons dashicons-warning"></span> %s</mark>',
|
||||
sprintf(
|
||||
// Translators: %s: Log directory path.
|
||||
esc_html__( 'To allow logging, make %s writable.', 'woocommerce' ),
|
||||
'<code>' . esc_html( $environment['log_directory'] ) . '</code>'
|
||||
)
|
||||
);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
@@ -446,7 +452,7 @@ $inactive_plugins_count = is_countable( $inactive_plugins ) ? count( $inactive_p
|
||||
<?php
|
||||
if ( strlen( $database['database_prefix'] ) > 20 ) {
|
||||
/* Translators: %1$s: Database prefix, %2$s: Docs link. */
|
||||
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%1$s - We recommend using a prefix with less than 20 characters. See: %2$s', 'woocommerce' ), esc_html( $database['database_prefix'] ), '<a href="https://woo.com/document/completed-order-email-doesnt-contain-download-links/#section-2" target="_blank">' . esc_html__( 'How to update your database table prefix', 'woocommerce' ) . '</a>' ) . '</mark>';
|
||||
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%1$s - We recommend using a prefix with less than 20 characters. See: %2$s', 'woocommerce' ), esc_html( $database['database_prefix'] ), '<a href="https://woocommerce.com/document/completed-order-email-doesnt-contain-download-links/#section-2" target="_blank">' . esc_html__( 'How to update your database table prefix', 'woocommerce' ) . '</a>' ) . '</mark>';
|
||||
} else {
|
||||
echo '<mark class="yes">' . esc_html( $database['database_prefix'] ) . '</mark>';
|
||||
}
|
||||
@@ -557,7 +563,7 @@ $inactive_plugins_count = is_countable( $inactive_plugins ) ? count( $inactive_p
|
||||
<mark class="error"><span class="dashicons dashicons-warning"></span>
|
||||
<?php
|
||||
/* Translators: %s: docs link. */
|
||||
echo wp_kses_post( sprintf( __( 'Your store is not using HTTPS. <a href="%s" target="_blank">Learn more about HTTPS and SSL Certificates</a>.', 'woocommerce' ), 'https://woo.com/document/ssl-and-https/' ) );
|
||||
echo wp_kses_post( sprintf( __( 'Your store is not using HTTPS. <a href="%s" target="_blank">Learn more about HTTPS and SSL Certificates</a>.', 'woocommerce' ), 'https://woocommerce.com/document/ssl-and-https/' ) );
|
||||
?>
|
||||
</mark>
|
||||
<?php endif; ?>
|
||||
@@ -725,8 +731,8 @@ if ( 0 < $mu_plugins_count ) :
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Connected to Woo.com"><?php esc_html_e( 'Connected to Woo.com', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( esc_html__( 'Is your site connected to Woo.com?', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td>
|
||||
<td data-export-label="Connected to WooCommerce.com"><?php esc_html_e( 'Connected to WooCommerce.com', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( esc_html__( 'Is your site connected to WooCommerce.com?', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td>
|
||||
<td><?php echo 'yes' === $settings['woocommerce_com_connected'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -735,11 +741,6 @@ if ( 0 < $mu_plugins_count ) :
|
||||
<td><?php echo $settings['enforce_approved_download_dirs'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td data-export-label="HPOS feature screen enabled"><?php esc_html_e( 'HPOS feature screen enabled:', 'woocommerce' ); ?></td>
|
||||
<td class="help"><?php echo wc_help_tip( esc_html__( 'Is HPOS feature screen enabled?', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo $settings['HPOS_feature_screen_enabled'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="HPOS feature enabled"><?php esc_html_e( 'HPOS enabled:', 'woocommerce' ); ?></td>
|
||||
<td class="help"><?php echo wc_help_tip( esc_html__( 'Is HPOS enabled?', 'woocommerce' ) ); ?></td>
|
||||
@@ -1006,7 +1007,7 @@ if ( 0 < $mu_plugins_count ) :
|
||||
<mark class="error">
|
||||
<span class="dashicons dashicons-warning"></span>
|
||||
</mark>
|
||||
<a href="https://woo.com/document/fix-outdated-templates-woocommerce/" target="_blank">
|
||||
<a href="https://woocommerce.com/document/fix-outdated-templates-woocommerce/" target="_blank">
|
||||
<?php esc_html_e( 'Learn how to update', 'woocommerce' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
|
||||
@@ -12,7 +12,7 @@ defined( 'ABSPATH' ) || exit;
|
||||
<p>
|
||||
<?php
|
||||
$settings_screen_link = '<a href="' . esc_url( get_admin_url( null, 'admin.php?page=wc-settings&tab=products§ion=download_urls' ) ) . '">';
|
||||
$documentation_link = '<a href="https://woo.com/document/approved-download-directories">';
|
||||
$documentation_link = '<a href="https://woocommerce.com/document/approved-download-directories">';
|
||||
$closing_link = '</a>';
|
||||
|
||||
printf(
|
||||
|
||||
@@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
<?php esc_html_e( 'Setup shipping zones', 'woocommerce' ); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<a class="button-secondary" href="https://woo.com/document/setting-up-shipping-zones/">
|
||||
<a class="button-secondary" href="https://woocommerce.com/document/setting-up-shipping-zones/">
|
||||
<?php esc_html_e( 'Learn more about shipping zones', 'woocommerce' ); ?>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@@ -30,7 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
<a class="button-primary" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-settings&tab=shipping' ) ); ?>">
|
||||
<?php esc_html_e( 'Setup shipping zones', 'woocommerce' ); ?>
|
||||
</a>
|
||||
<a class="button-secondary" href="https://woo.com/document/setting-up-shipping-zones/">
|
||||
<a class="button-secondary" href="https://woocommerce.com/document/setting-up-shipping-zones/">
|
||||
<?php esc_html_e( 'Learn more about shipping zones', 'woocommerce' ); ?>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@@ -16,7 +16,7 @@ defined( 'ABSPATH' ) || exit;
|
||||
echo wp_kses_post( sprintf(
|
||||
/* translators: %s: documentation URL */
|
||||
__( 'Your store does not appear to be using a secure connection. We highly recommend serving your entire website over an HTTPS connection to help keep customer data secure. <a href="%s">Learn more here.</a>', 'woocommerce' ),
|
||||
'https://woo.com/document/ssl-and-https/'
|
||||
'https://woocommerce.com/document/ssl-and-https/'
|
||||
) );
|
||||
?>
|
||||
</p>
|
||||
|
||||
@@ -23,7 +23,7 @@ $theme = wp_get_theme();
|
||||
</ol>
|
||||
</p>
|
||||
<p class="submit">
|
||||
<a class="button-primary" href="https://woo.com/document/template-structure/" target="_blank"><?php esc_html_e( 'Learn more about templates', 'woocommerce' ); ?></a>
|
||||
<a class="button-primary" href="https://woocommerce.com/document/template-structure/" target="_blank"><?php esc_html_e( 'Learn more about templates', 'woocommerce' ); ?></a>
|
||||
<a class="button-primary" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-status' ) ); ?>" target="_blank"><?php esc_html_e( 'View affected templates', 'woocommerce' ); ?></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -32,7 +32,7 @@ $update_url = wp_nonce_url(
|
||||
<a href="<?php echo esc_url( $update_url ); ?>" class="wc-update-now button-primary">
|
||||
<?php esc_html_e( 'Update WooCommerce Database', 'woocommerce' ); ?>
|
||||
</a>
|
||||
<a href="https://woo.com/document/how-to-update-woocommerce/" class="button-secondary">
|
||||
<a href="https://woocommerce.com/document/how-to-update-woocommerce/" class="button-secondary">
|
||||
<?php esc_html_e( 'Learn more about updates', 'woocommerce' ); ?>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@@ -21,7 +21,7 @@ $uploads = wp_get_upload_dir();
|
||||
/* translators: 1: uploads directory URL 2: documentation URL */
|
||||
__( 'Your store\'s uploads directory is <a href="%1$s">browsable via the web</a>. We strongly recommend <a href="%2$s">configuring your web server to prevent directory indexing</a>.', 'woocommerce' ),
|
||||
esc_url( $uploads['baseurl'] . '/woocommerce_uploads' ),
|
||||
'https://woo.com/document/digital-downloadable-product-handling/#protecting-your-uploads-directory'
|
||||
'https://woocommerce.com/document/digital-downloadable-product-handling/#protecting-your-uploads-directory'
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
@@ -22,7 +22,7 @@ defined( 'ABSPATH' ) || exit;
|
||||
'utm_campaign' => 'woocommerceplugin',
|
||||
'utm_content' => 'docs',
|
||||
),
|
||||
'https://woo.com/document/update-php-wordpress/'
|
||||
'https://woocommerce.com/document/update-php-wordpress/'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user