Skip to content

Commit 8f0f068

Browse files
authored
Fix issue 510 and translation files update/expansion (#580)
* Updated translation files. * Some fixes for specific translation syntax issues. Potential fix for user locale not applying when core WP translation files for W3TC exist in wp-content/languages/plugins. * Fixed JS/CSS hook issue with translations. Added missing translations and updated language files. * Fixed performance translation from acting to ability translation. * Fixed issue with admin_print_scripts-{$suffix} translations queued too early for user locale to apply thereby breaking JS.
1 parent 3c24030 commit 8f0f068

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+149867
-27359
lines changed

CacheGroups_Plugin_Admin_View.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<td>
5757
<span class="mobile_group_number"><?php echo esc_attr( $index ); ?>.</span> <span class="mobile_group"><?php echo esc_html( $group ); // phpcs:ignore ?></span>
5858
<input type="button" class="button mobile_delete"
59-
value="Delete group"
59+
value="<?php esc_html_e( 'Delete group', 'w3-total-cache' ); ?>"
6060
<?php disabled( $useragent_groups['disabled'] ); ?> />
6161
</td>
6262
</tr>
@@ -259,7 +259,7 @@
259259
<span class="cookiegroup_number"><?php echo esc_attr( $index ); ?>.</span>
260260
<span class="cookiegroup_name"><?php echo htmlspecialchars( $group ); // phpcs:ignore ?></span>
261261
<input type="button" class="button w3tc_cookiegroup_delete"
262-
value="Delete group"
262+
value="<?php esc_html_e( 'Delete group', 'w3-total-cache' ); ?>"
263263
<?php disabled( $cookie_groups['disabled'] ); ?> />
264264
</td>
265265
</tr>

Cdn_MaxCdn_Page_View.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<tr>
1010
<th style="width: 300px;"><label><?php esc_html_e( 'Create account:', 'w3-total-cache' ); ?></label></th>
1111
<td>
12-
<a href="<?php echo esc_url( wp_nonce_url( Util_Ui::admin_url( 'admin.php?page=w3tc_dashboard&w3tc_cdn_maxcdn_signup' ), 'w3tc' ) ); ?>" target="_blank" id="netdna-maxcdn-create-account" class="button-primary"><?php w3tc_e( 'cdn.maxcdn.signUpAndSave', 'Sign Up Now and save!' ); ?></a>
13-
<p class="description"><?php w3tc_e( 'cdn.maxcdn.signUpAndSave.description', 'MaxCDN is a service that lets you speed up your site even more with W3 Total Cache. Sign up now to recieve a special offer!' ); ?></p>
12+
<a href="<?php echo esc_url( wp_nonce_url( Util_Ui::admin_url( 'admin.php?page=w3tc_dashboard&w3tc_cdn_maxcdn_signup' ), 'w3tc' ) ); ?>" target="_blank" id="netdna-maxcdn-create-account" class="button-primary"><?php w3tc_e( 'cdn.maxcdn.signUpAndSave', __( 'Sign Up Now and save!', 'w3-total-cache' ) ); ?></a>
13+
<p class="description"><?php w3tc_e( 'cdn.maxcdn.signUpAndSave.description', __( 'MaxCDN is a service that lets you speed up your site even more with W3 Total Cache. Sign up now to recieve a special offer!', 'w3-total-cache' ) ); ?></p>
1414
</td>
1515
</tr>
1616
<?php endif ?>

Cdn_Plugin_Admin.php

-24
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,11 @@ function run() {
2828

2929
// attach to actions without firing class loading at all without need
3030
if ( $cdn_engine == 'google_drive' ) {
31-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
32-
'\W3TC\Cdn_GoogleDrive_Page',
33-
'admin_print_scripts_w3tc_cdn' ) );
3431
add_action( 'w3tc_settings_cdn_boxarea_configuration', array(
3532
'\W3TC\Cdn_GoogleDrive_Page',
3633
'w3tc_settings_cdn_boxarea_configuration'
3734
) );
3835
} elseif ( $cdn_engine == 'highwinds' ) {
39-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
40-
'\W3TC\Cdn_Highwinds_Page',
41-
'admin_print_scripts_w3tc_cdn' ) );
4236
add_action( 'w3tc_ajax', array(
4337
'\W3TC\Cdn_Highwinds_Popup',
4438
'w3tc_ajax' ) );
@@ -52,9 +46,6 @@ function run() {
5246
'\W3TC\Cdn_Highwinds_Page',
5347
'w3tc_settings_cdn_boxarea_configuration' ) );
5448
} elseif ( $cdn_engine == 'limelight' ) {
55-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
56-
'\W3TC\Cdn_LimeLight_Page',
57-
'admin_print_scripts_w3tc_cdn' ) );
5849
add_action( 'w3tc_ajax', array(
5950
'\W3TC\Cdn_LimeLight_Popup',
6051
'w3tc_ajax' ) );
@@ -63,9 +54,6 @@ function run() {
6354
'w3tc_settings_cdn_boxarea_configuration'
6455
) );
6556
} elseif ( $cdn_engine == 'maxcdn' ) {
66-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
67-
'\W3TC\Cdn_MaxCdn_Page',
68-
'admin_print_scripts_w3tc_cdn' ) );
6957
add_action( 'w3tc_ajax', array(
7058
'\W3TC\Cdn_MaxCdn_Popup',
7159
'w3tc_ajax' ) );
@@ -77,29 +65,20 @@ function run() {
7765
add_filter( 'w3tc_admin_actions', array(
7866
'\W3TC\Cdn_RackSpaceCdn_Page',
7967
'w3tc_admin_actions' ) );
80-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
81-
'\W3TC\Cdn_RackSpaceCdn_Page',
82-
'admin_print_scripts_w3tc_cdn' ) );
8368
add_action( 'w3tc_ajax', array(
8469
'\W3TC\Cdn_RackSpaceCdn_Popup',
8570
'w3tc_ajax' ) );
8671
add_action( 'w3tc_settings_cdn_boxarea_configuration', array(
8772
'\W3TC\Cdn_RackSpaceCdn_Page',
8873
'w3tc_settings_cdn_boxarea_configuration' ) );
8974
} elseif ( $cdn_engine == 'rscf' ) {
90-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
91-
'\W3TC\Cdn_RackSpaceCloudFiles_Page',
92-
'admin_print_scripts_w3tc_cdn' ) );
9375
add_action( 'w3tc_ajax', array(
9476
'\W3TC\Cdn_RackSpaceCloudFiles_Popup',
9577
'w3tc_ajax' ) );
9678
add_action( 'w3tc_settings_cdn_boxarea_configuration', array(
9779
'\W3TC\Cdn_RackSpaceCloudFiles_Page',
9880
'w3tc_settings_cdn_boxarea_configuration' ) );
9981
} elseif ( $cdn_engine == 'stackpath' ) {
100-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
101-
'\W3TC\Cdn_StackPath_Page',
102-
'admin_print_scripts_w3tc_cdn' ) );
10382
add_action( 'w3tc_ajax', array(
10483
'\W3TC\Cdn_StackPath_Popup',
10584
'w3tc_ajax' ) );
@@ -114,9 +93,6 @@ function run() {
11493
'\W3TC\Cdn_StackPath_Widget',
11594
'w3tc_ajax_cdn_stackpath_widgetdata' ) );
11695
} elseif ( $cdn_engine == 'stackpath2' ) {
117-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
118-
'\W3TC\Cdn_StackPath2_Page',
119-
'admin_print_scripts_w3tc_cdn' ) );
12096
add_action( 'w3tc_ajax', array(
12197
'\W3TC\Cdn_StackPath2_Popup',
12298
'w3tc_ajax' ) );

Cdn_StackPath2_Page_View.php

+14-3
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,28 @@
1313
<?php
1414
w3tc_e(
1515
'cdn.stackpath.widget.v2.no_cdn',
16-
'W3 Total Cache has detected that you do not have a <acronym title="Content Delivery Network">CDN</acronym> configured'
16+
sprintf(
17+
// translators: 1 HTML acronym for Content Delivery Network (CDN).
18+
__( 'W3 Total Cache has detected that you do not have a %1$s configured', 'w3-total-cache' ),
19+
'<acronym title="' . __( 'Content Delivery Network', 'w3-total-cache' ) . '">' . __( 'CDN', 'w3-total-cache' ) . '</acronym>'
20+
)
1721
);
1822
?>
1923
</p>
2024
<p>
2125
<?php esc_html_e( 'Enhance your website Performance with StackPath\'s CDN services. StackPath works magically with W3 Total Cache to speed up your site around the world for as little as $10 a month.', 'w3-total-cache' ); ?>
2226
</p>
2327
<p>
24-
<a href="<?php echo esc_url( W3TC_STACKPATH_SIGNUP_URL ); ?>" target="_blank" id="netdna-stackpath-create-account" class="button-primary"><?php w3tc_e( 'cdn.stackpath2.signUpAndSave', 'Sign Up Now and save!' ); ?></a>
28+
<a href="<?php echo esc_url( W3TC_STACKPATH_SIGNUP_URL ); ?>" target="_blank" id="netdna-stackpath-create-account" class="button-primary"><?php w3tc_e( 'cdn.stackpath2.signUpAndSave', __( 'Sign Up Now and save!', 'w3-total-cache' ) ); ?></a>
29+
</p>
30+
<p class="description">
31+
<?php
32+
w3tc_e(
33+
'cdn.stackpath2.signUpAndSave.description',
34+
__( 'StackPath is a service that lets you speed up your site even more with W3 Total Cache. Sign up now to recieve a special offer!', 'w3-total-cache' )
35+
);
36+
?>
2537
</p>
26-
<p class="description"><?php w3tc_e( 'cdn.stackpath2.signUpAndSave.description', 'StackPath is a service that lets you speed up your site even more with W3 Total Cache. Sign up now to recieve a special offer!' ); ?></p>
2738
</td>
2839
</tr>
2940
<?php endif; ?>

Cdn_StackPath2_Widget_View_Unauthorized.php

+20-8
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111
<?php
1212
w3tc_e(
1313
'cdn.stackpath.widget.v2.no_cdn',
14-
'W3 Total Cache has detected that you do not have a <acronym title="Content Delivery Network">CDN</acronym>
15-
configured'
14+
sprintf(
15+
// translators: 1 HTML acronym for Content Delivery Network (CDN).
16+
__( 'W3 Total Cache has detected that you do not have a %1$s configured', 'w3-total-cache' ),
17+
'<acronym title="' . __( 'Content Delivery Network', 'w3-total-cache' ) . '">' . __( 'CDN', 'w3-total-cache' ) . '</acronym>'
18+
)
1619
);
1720
?>
1821
</p>
@@ -22,8 +25,11 @@
2225
<?php
2326
w3tc_e(
2427
'cdn.stackpath.widget.v2.header',
25-
"Enhance your website performance by adding StackPath's (<acronym title='Content Delivery Network'>CDN</acronym>)
26-
service to your site."
28+
sprintf(
29+
// translators: 1 HTML acronym for Content Delivery Network (CDN).
30+
__( 'Enhance your website performance by adding StackPath\'s (%1$s) service to your site.', 'w3-total-cache' ),
31+
'<acronym title="' . __( 'Content Delivery Network', 'w3-total-cache' ) . '">' . __( 'CDN', 'w3-total-cache' ) . '</acronym>'
32+
)
2733
);
2834
?>
2935
</p>
@@ -33,7 +39,7 @@
3339
<?php
3440
w3tc_e(
3541
'cdn.stackpath2.widget.v2.works_magically',
36-
'StackPath works magically with W3 Total Cache to speed up your site around the world for as little as $10 per month.'
42+
__( 'StackPath works magically with W3 Total Cache to speed up your site around the world for as little as $10 per month.', 'w3-total-cache' )
3743
);
3844
?>
3945
</p>
@@ -46,9 +52,15 @@
4652
<?php
4753
w3tc_e(
4854
'cdn.stackpath2.widget.v2.existing',
49-
"If you're an existing StackPath customer, enable <acronym title='Content Delivery Network'>CDN</acronym>
50-
and Authorize. If you need help configuring your <acronym title='Content Delivery Network'>CDN</acronym>,
51-
we also offer Premium Services to assist you."
55+
sprintf(
56+
// translators: 1 HTML acronym for Content Delivery Network (CDN).
57+
__(
58+
'If you\'re an existing StackPath customer, enable %1$s and Authorize. If you need help configuring
59+
your %1$s, we also offer Premium Services to assist you.',
60+
'w3-total-cache'
61+
),
62+
'<acronym title="' . __( 'Content Delivery Network', 'w3-total-cache' ) . '">' . __( 'CDN', 'w3-total-cache' ) . '</acronym>'
63+
)
5264
);
5365
?>
5466
</p>

Cdn_StackPath_Page_View.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<tr>
1010
<th style="width: 300px;"><label><?php esc_html_e( 'Create account:', 'w3-total-cache' ); ?></label></th>
1111
<td>
12-
<a href="<?php echo esc_url( W3TC_STACKPATH_SIGNUP_URL ); ?>" target="_blank" id="netdna-stackpath-create-account" class="button-primary"><?php w3tc_e( 'cdn.stackpath.signUpAndSave', 'Sign Up Now and save!' ); ?></a>
13-
<p class="description"><?php w3tc_e( 'cdn.stackpath.signUpAndSave.description', 'StackPath is a service that lets you speed up your site even more with W3 Total Cache. Sign up now and save!' ); ?></p>
12+
<a href="<?php echo esc_url( W3TC_STACKPATH_SIGNUP_URL ); ?>" target="_blank" id="netdna-stackpath-create-account" class="button-primary"><?php w3tc_e( 'cdn.stackpath.signUpAndSave', __( 'Sign Up Now and save!', 'w3-total-cache' ) ); ?></a>
13+
<p class="description"><?php w3tc_e( 'cdn.stackpath.signUpAndSave.description', __( 'StackPath is a service that lets you speed up your site even more with W3 Total Cache. Sign up now and save!', 'w3-total-cache' ) ); ?></p>
1414
</td>
1515
</tr>
1616
<?php endif; ?>

Cdn_StackPath_Widget_View_Unauthorized.php

+25-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,34 @@
66
}
77
?>
88
<div id="stackpath-widget" class="w3tcstackpath_signup">
9-
<p><?php w3tc_e( 'cdn.stackpath.widget.header', 'Dramatically increase website speeds in just a few clicks! Add the StackPath content delivery network (<acronym title="Content Delivery Network">CDN</acronym>) service to your site.' ); ?></p>
9+
<p>
10+
<?php
11+
w3tc_e(
12+
'cdn.stackpath.widget.header',
13+
sprintf(
14+
// translators: 1 HTML acronym for Content Delivery Network (CDN).
15+
__( 'Dramatically increase website speeds in just a few clicks! Add the StackPath content delivery network (%1$s) service to your site.', 'w3-total-cache' ),
16+
'<acronym title="' . __( 'Content Delivery Network', 'w3-total-cache' ) . '">' . __( 'CDN', 'w3-total-cache' ) . '</acronym>'
17+
)
18+
);
19+
?>
20+
</p>
1021
<h4 class="w3tcstackpath_signup_h4"><?php esc_html_e( 'New customers', 'w3-total-cache' ); ?></h4>
11-
<p><?php w3tc_e( 'cdn.stackpath.widget.works_magically', 'StackPath works magically with W3 Total Cache.' ); ?></p>
22+
<p><?php w3tc_e( 'cdn.stackpath.widget.works_magically', __( 'StackPath works magically with W3 Total Cache.', 'w3-total-cache' ) ); ?></p>
1223
<a class="button-primary" href="<?php echo esc_url( W3TC_STACKPATH_SIGNUP_URL ); ?>" target="_blank"><?php esc_html_e( 'Sign Up Now ', 'w3-total-cache' ); ?></a>
1324
<p><!--span class="desc"><?php esc_html_e( 'Exclusive offers availabel for W3TC users!', 'w3-total-cache' ); ?></span></p>-->
1425
<h4 class="w3tcstackpath_signup_h4"><?php esc_html_e( 'Current customers', 'w3-total-cache' ); ?></h4>
15-
<p><?php w3tc_e( 'cdn.stackpath.widget.existing', "If you're an existing StackPath customer, enable <acronym title='Content Delivery Network'>CDN</acronym> and:" ); ?></p>
26+
<p>
27+
<?php
28+
w3tc_e(
29+
'cdn.stackpath.widget.existing',
30+
sprintf(
31+
// translators: 1 HTML acronym for Content Delivery Network (CDN).
32+
__( 'If you\'re an existing StackPath customer, enable %1$s and:', 'w3-total-cache' ),
33+
'<acronym title="' . __( 'Content Delivery Network', 'w3-total-cache' ) . '">' . __( 'CDN', 'w3-total-cache' ) . '</acronym>'
34+
)
35+
);
36+
?>
37+
</p>
1638
<a class="button-primary" href="<?php echo esc_url( wp_nonce_url( Util_Ui::admin_url( 'admin.php?page=w3tc_cdn' ), 'w3tc' ) ); ?>" target="_blank"><?php esc_html_e( 'Authorize', 'w3-total-cache' ); ?></a>
1739
</div>

Cdnfsd_GeneralPage_View.php

+33-23
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,44 @@
55
die();
66
}
77
?>
8-
<p><?php w3tc_e( 'cdnfsd.general.header', 'Host the entire website with your compatible <acronym title="Content Delivery Network">CDN</acronym> provider to reduce page load time.' ); ?>
9-
<?php if ( ! $cdnfsd_enabled ) : ?>
8+
<p>
109
<?php
11-
wp_kses(
10+
w3tc_e(
11+
'cdnfsd.general.header',
1212
sprintf(
13-
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag,
14-
// translators: 3 opening HTML a tag to W3TC MaxCDN Signup admin page, 4 closing HTML a tag.
15-
__(
16-
'If you do not have a %1$sCDN%2$s provider try StackPath. %3$sSign up now to enjoy a special offer!%4$s.',
17-
'w3-total-cache'
18-
),
19-
'<acronym title="' . esc_attr__( 'Content Delivery Network', 'w3-total-cache' ) . '">',
20-
'</acronym>',
21-
'<a href="' . esc_url( wp_nonce_url( Util_Ui::admin_url( 'admin.php?page=w3tc_dashboard&w3tc_cdn_maxcdn_signup' ), 'w3tc' ) ) . '" target="_blank">',
22-
'</a>'
23-
),
24-
array(
25-
'acronym' => array(
26-
'title' => array(),
27-
),
28-
'a' => array(
29-
'href' => array(),
30-
'target' => array(),
31-
),
13+
// translators: 1 HTML acronym for Content Delivery Network (CDN).
14+
__( 'Host the entire website with your compatible %1$s provider to reduce page load time.', 'w3-total-cache' ),
15+
'<acronym title="' . __( 'Content Delivery Network', 'w3-total-cache' ) . '">' . __( 'CDN', 'w3-total-cache' ) . '</acronym>'
3216
)
3317
);
3418
?>
35-
<?php endif; ?>
19+
<?php if ( ! $cdnfsd_enabled ) : ?>
20+
<?php
21+
wp_kses(
22+
sprintf(
23+
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag,
24+
// translators: 3 opening HTML a tag to W3TC MaxCDN Signup admin page, 4 closing HTML a tag.
25+
__(
26+
'If you do not have a %1$sCDN%2$s provider try StackPath. %3$sSign up now to enjoy a special offer!%4$s.',
27+
'w3-total-cache'
28+
),
29+
'<acronym title="' . esc_attr__( 'Content Delivery Network', 'w3-total-cache' ) . '">',
30+
'</acronym>',
31+
'<a href="' . esc_url( wp_nonce_url( Util_Ui::admin_url( 'admin.php?page=w3tc_dashboard&w3tc_cdn_maxcdn_signup' ), 'w3tc' ) ) . '" target="_blank">',
32+
'</a>'
33+
),
34+
array(
35+
'acronym' => array(
36+
'title' => array(),
37+
),
38+
'a' => array(
39+
'href' => array(),
40+
'target' => array(),
41+
),
42+
)
43+
);
44+
?>
45+
<?php endif; ?>
3646
</p>
3747

3848
<table class="<?php echo esc_attr( Util_Ui::table_class() ); ?>">

Cdnfsd_Plugin_Admin.php

-15
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,34 @@ function run() {
88

99
// attach to actions without firing class loading at all without need
1010
if ( $cdnfsd_engine == 'cloudfront' ) {
11-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
12-
'\W3TC\Cdnfsd_CloudFront_Page',
13-
'admin_print_scripts_performance_page_w3tc_cdn' ) );
1411
add_action( 'w3tc_ajax', array(
1512
'\W3TC\Cdnfsd_CloudFront_Popup',
1613
'w3tc_ajax' ) );
1714
add_action( 'w3tc_settings_box_cdnfsd', array(
1815
'\W3TC\Cdnfsd_CloudFront_Page',
1916
'w3tc_settings_box_cdnfsd' ) );
2017
} elseif ( $cdnfsd_engine == 'limelight' ) {
21-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
22-
'\W3TC\Cdnfsd_LimeLight_Page',
23-
'admin_print_scripts_performance_page_w3tc_cdn' ) );
2418
add_action( 'w3tc_ajax', array(
2519
'\W3TC\Cdnfsd_LimeLight_Popup',
2620
'w3tc_ajax' ) );
2721
add_action( 'w3tc_settings_box_cdnfsd', array(
2822
'\W3TC\Cdnfsd_LimeLight_Page',
2923
'w3tc_settings_box_cdnfsd' ) );
3024
} elseif ( $cdnfsd_engine == 'maxcdn' ) {
31-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
32-
'\W3TC\Cdnfsd_MaxCdn_Page',
33-
'admin_print_scripts_performance_page_w3tc_cdn' ) );
3425
add_action( 'w3tc_ajax', array(
3526
'\W3TC\Cdnfsd_MaxCdn_Popup',
3627
'w3tc_ajax' ) );
3728
add_action( 'w3tc_settings_box_cdnfsd', array(
3829
'\W3TC\Cdnfsd_MaxCdn_Page',
3930
'w3tc_settings_box_cdnfsd' ) );
4031
} elseif ( $cdnfsd_engine == 'stackpath' ) {
41-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
42-
'\W3TC\Cdnfsd_StackPath_Page',
43-
'admin_print_scripts_performance_page_w3tc_cdn' ) );
4432
add_action( 'w3tc_ajax', array(
4533
'\W3TC\Cdnfsd_StackPath_Popup',
4634
'w3tc_ajax' ) );
4735
add_action( 'w3tc_settings_box_cdnfsd', array(
4836
'\W3TC\Cdnfsd_StackPath_Page',
4937
'w3tc_settings_box_cdnfsd' ) );
5038
} elseif ( $cdnfsd_engine == 'stackpath2' ) {
51-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array(
52-
'\W3TC\Cdnfsd_StackPath2_Page',
53-
'admin_print_scripts_performance_page_w3tc_cdn' ) );
5439
add_action( 'w3tc_ajax', array(
5540
'\W3TC\Cdnfsd_StackPath2_Popup',
5641
'w3tc_ajax' ) );

Extension_CloudFlare_Plugin_Admin.php

-2
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,13 @@ function run() {
102102

103103
// own settings page.
104104
add_action( 'w3tc_extension_page_cloudflare', array( '\W3TC\Extension_CloudFlare_Page', 'w3tc_extension_page_cloudflare' ) );
105-
add_action( 'admin_print_scripts-performance_page_w3tc_extensions', array( '\W3TC\Extension_CloudFlare_Page', 'admin_print_scripts_w3tc_extensions' ) );
106105

107106
add_action( 'w3tc_ajax', array( '\W3TC\Extension_CloudFlare_Popup', 'w3tc_ajax' ) );
108107

109108
$cdnfsd_engine = $c->get_string( 'cdnfsd.engine' );
110109

111110
if ( empty( $cdnfsd_engine ) || 'cloudflare' === $cdnfsd_engine ) {
112111
add_action( 'w3tc_settings_box_cdnfsd', array( '\W3TC\Extension_CloudFlare_Page', 'w3tc_settings_box_cdnfsd' ) );
113-
add_action( 'admin_print_scripts-performance_page_w3tc_cdn', array( '\W3TC\Extension_CloudFlare_Page', 'admin_print_scripts_w3tc_extensions' ) );
114112
}
115113

116114
// add notices about api health.

Extension_FeedBurner_Page_View.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
}
77
?>
88
<p>
9-
Jump to:
9+
<?php esc_html_e( 'Jump to:', 'w3-total-cache' ); ?>
1010
<a href="admin.php?page=w3tc_general"><?php esc_html_e( 'Main Menu', 'w3-total-cache' ); ?></a> |
1111
<a href="admin.php?page=w3tc_extensions"><?php esc_html_e( 'Extensions', 'w3-total-cache' ); ?></a>
1212
</p>
1313
<p>
14-
FeedBurner extension is currently
1514
<?php
15+
esc_html_e( 'FeedBurner extension is currently', 'w3-total-cache' );
1616
if ( $config->is_extension_active_frontend( 'feedburner' ) ) {
17-
echo '<span class="w3tc-enabled">enabled</span>';
17+
echo '<span class="w3tc-enabled">' . esc_html__( 'enabled', 'w3-total-cache' ) . '</span>';
1818
} else {
19-
echo '<span class="w3tc-disabled">disabled</span>';
19+
echo '<span class="w3tc-disabled">' . esc_html__( 'disabled', 'w3-total-cache' ) . '</span>';
2020
}
2121
?>
2222
.

0 commit comments

Comments
 (0)