[2.6] Display proper screen render text for custom range reports, closes #11543
This commit is contained in:
parent
8c5678f967
commit
63a570f161
|
@ -12,7 +12,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<div id="poststuff" class="woocommerce-reports-wide">
|
||||
<div class="postbox">
|
||||
|
||||
<h3 class="screen-reader-text"><?php echo esc_html( $ranges[ $current_range ] ); ?></h3>
|
||||
<?php if ( 'custom' === $current_range && isset( $_GET['start_date'], $_GET['end_date'] ) ) : ?>
|
||||
<h3 class="screen-reader-text"><?php echo esc_html( sprintf( _x( 'From %s to %s', 'start date and end date', 'woocommerce' ), wc_clean( $_GET['start_date'] ), wc_clean( $_GET['end_date'] ) ) ); ?></h3>
|
||||
<?php else : ?>
|
||||
<h3 class="screen-reader-text"><?php echo esc_html( $ranges[ $current_range ] ); ?></h3>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="stats_range">
|
||||
<?php $this->get_export_button(); ?>
|
||||
|
|
Loading…
Reference in New Issue