Skip to content

Commit d983b8f

Browse files
2 parents 21087ee + 43cf15d commit d983b8f

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

src/class-tiny-settings.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,7 @@ public function render_image_sizes_notice(
425425
Tiny_Config::MONTHLY_FREE_COMPRESSIONS / $active_sizes_count
426426
);
427427
printf( wp_kses( __(
428-
'With these settings you can compress
429-
<strong> at least %s images </strong> for free each month.',
428+
'With these settings you can compress <strong>at least %s images</strong> for free each month.',
430429
'tiny-compress-images'
431430
), array( 'strong' => array() ) ), $free_images_per_month );
432431

src/views/bulk-optimization.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,10 @@
140140
<div class="tooltip">
141141
<span class="dashicons dashicons-info"></span>
142142
<div class="tip">
143-
<p>
144-
<?php esc_html_e( 'If you wish to compress more than ', 'tiny-compress-images' ) ?>
145-
<strong>
146-
<?php echo Tiny_Config::MONTHLY_FREE_COMPRESSIONS ?>
147-
<?php esc_html_e( 'image sizes', 'tiny-compress-images' ) ?>
148-
</strong>
149-
<?php esc_html_e( 'a month and you are still on a free account', 'tiny-compress-images' ) ?>
150-
<a href="https://tinypng.com/developers"><?php esc_html_e( 'upgrade here.', 'tiny-compress-images' ) ?></a>
151-
</p>
143+
<p><?php
144+
printf( wp_kses( __( 'If you wish to compress more than <strong>%d %s</strong> a month and you are still on a free account %s.', 'tiny-compress-images' ),
145+
array( 'strong' => array(), 'a' => array( 'href' => array() ) ) ), Tiny_Config::MONTHLY_FREE_COMPRESSIONS, esc_html__( 'image sizes', 'tiny-compress-images' ), '<a href="https://tinypng.com/dashboard/developers">' . esc_html__( ' upgrade here', 'tiny-compress-images' ) . '</a>' );
146+
?></p>
152147
</div>
153148
</div>
154149
<?php } ?>

src/views/dashboard-widget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</div>
3232
<div class="media-library-optimized" id="widget-full-optimized">
3333
<p><?php printf( esc_html__( '%s, this is great! Your entire library is optimized!', 'tiny-compress-images' ), $this->friendly_user_name() ) ?></p>
34-
<p id="ie8-compressed"><?php printf( wp_kses( __( 'You have compressed <span></span>%% of your media library.', 'tiny-compress-images' ), array( 'span' => array() ) ) )?></p>
34+
<p id="ie8-compressed"><?php printf( wp_kses( __( 'You have <strong>saved %s</strong> of your media library size.', 'tiny-compress-images' ), array( 'span' => array(), 'strong' => array() ) ), '<span></span>%' )?></p>
3535
</div>
3636
<div class="media-library-optimized" id="widget-half-optimized">
3737
<p>

0 commit comments

Comments
 (0)