updated plugin W3 Total Cache
version 2.5.0
This commit is contained in:
@ -99,7 +99,7 @@ class Extension_ImageService_Plugin_Admin {
|
||||
$library_url = esc_url( Util_Ui::admin_url( 'upload.php?mode=list' ) );
|
||||
|
||||
$extensions['imageservice'] = array(
|
||||
'name' => 'Image Service',
|
||||
'name' => 'WebP Converter',
|
||||
'author' => 'BoldGrid',
|
||||
'description' => esc_html( $description ),
|
||||
'author_uri' => 'https://www.boldgrid.com/',
|
||||
@ -114,7 +114,7 @@ class Extension_ImageService_Plugin_Admin {
|
||||
'notice' => sprintf(
|
||||
// translators: 1: HTML anchor open tag, 2: HTML anchor close tag, 3: HTML anchor open tag, 4: HTML anchor open tag.
|
||||
__(
|
||||
'Total Cache Image Service has been activated. Now, you can %1$sadjust the settings%2$s or go to the %3$sMedia Library%2$s to convert images to WebP. %4$sLearn more%2$s.',
|
||||
'Total Cache WebP Converter has been activated. Now, you can %1$sadjust the settings%2$s or go to the %3$sMedia Library%2$s to convert images to WebP. %4$sLearn more%2$s.',
|
||||
'w3-total-cache'
|
||||
),
|
||||
'<a class="edit" href="' . $settings_url . '">',
|
||||
@ -489,8 +489,8 @@ class Extension_ImageService_Plugin_Admin {
|
||||
// Add settings submenu to Media top-level menu.
|
||||
add_submenu_page(
|
||||
'upload.php',
|
||||
esc_html__( 'Total Cache Image Service', 'w3-total-cache' ),
|
||||
esc_html__( 'Total Cache Image Service', 'w3-total-cache' ),
|
||||
esc_html__( 'Total Cache WebP Converter', 'w3-total-cache' ),
|
||||
esc_html__( 'Total Cache WebP Converter', 'w3-total-cache' ),
|
||||
'edit_posts',
|
||||
'w3tc_extension_page_imageservice',
|
||||
array( $this, 'settings_page' )
|
||||
@ -515,6 +515,8 @@ class Extension_ImageService_Plugin_Admin {
|
||||
|
||||
if ( $is_settings_page ) {
|
||||
wp_enqueue_style( 'w3tc-options' );
|
||||
wp_enqueue_style( 'w3tc-bootstrap-css' );
|
||||
wp_enqueue_script( 'w3tc-options' );
|
||||
}
|
||||
|
||||
if ( $is_settings_page || $is_media_page ) {
|
||||
@ -572,7 +574,7 @@ class Extension_ImageService_Plugin_Admin {
|
||||
),
|
||||
'tos_choice' => Licensing_Core::get_tos_choice(),
|
||||
'track_usage' => $this->config->get_boolean( 'common.track_usage' ),
|
||||
'ga_profile' => ( defined( 'W3TC_DEVELOPER' ) && W3TC_DEVELOPER ) ? 'UA-2264433-7' : 'UA-2264433-8',
|
||||
'ga_profile' => ( defined( 'W3TC_DEVELOPER' ) && W3TC_DEVELOPER ) ? 'G-Q3CHQJWERM' : 'G-5TFS8M5TTY',
|
||||
'settings' => $this->config->get_array( 'imageservice' ),
|
||||
'settingsUrl' => esc_url( Util_Ui::admin_url( 'upload.php?page=w3tc_extension_page_imageservice' ) ),
|
||||
)
|
||||
@ -605,7 +607,7 @@ class Extension_ImageService_Plugin_Admin {
|
||||
// Delete transient for displaying activation notice.
|
||||
delete_transient( 'w3tc_activation_imageservice' );
|
||||
|
||||
$posts_columns['imageservice'] = '<span class="w3tc-convert"></span> ' . esc_html__( 'Image Service', 'w3-total-cache' );
|
||||
$posts_columns['imageservice'] = '<span class="w3tc-convert"></span> ' . esc_html__( 'WebP Converter', 'w3-total-cache' );
|
||||
|
||||
return $posts_columns;
|
||||
}
|
||||
@ -855,7 +857,7 @@ class Extension_ImageService_Plugin_Admin {
|
||||
<script>history.pushState( null, '', location.href.split( '?' )[0] );</script>
|
||||
|
||||
<div class="updated notice notice-success is-dismissible">
|
||||
<p>Total Cache Image Service</p>
|
||||
<p>Total Cache WebP Converter</p>
|
||||
<p>
|
||||
<?php
|
||||
|
||||
@ -900,7 +902,7 @@ class Extension_ImageService_Plugin_Admin {
|
||||
?>
|
||||
<script>history.pushState( null, '', location.href.split( '?' )[0] );</script>
|
||||
|
||||
<div class="updated notice notice-success is-dismissible"><p>Total Cache Image Service</p>
|
||||
<div class="updated notice notice-success is-dismissible"><p>Total Cache WebP Converter</p>
|
||||
<p><?php esc_html_e( 'All selected optimizations have been reverted.', 'w3-total-cache' ); ?></p>
|
||||
</div>
|
||||
<?php
|
||||
@ -912,7 +914,7 @@ class Extension_ImageService_Plugin_Admin {
|
||||
// If not in list mode, then print a notice to switch to it.
|
||||
if ( 'list' !== $mode ) {
|
||||
?>
|
||||
<div class="notice notice-warning is-dismissible"><p>Total Cache Image Service -
|
||||
<div class="notice notice-warning is-dismissible"><p>Total Cache WebP Converter -
|
||||
<?php
|
||||
printf(
|
||||
// translators: 1: HTML anchor open tag, 2: HTML anchor close tag.
|
||||
|
Reference in New Issue
Block a user