updated plugin W3 Total Cache
version 2.5.0
This commit is contained in:
wp-content/plugins/w3-total-cache
BrowserCache_Environment_Nginx.phpBrowserCache_Page_View_SectionSecurity.phpBrowserCache_Plugin.phpCacheFlush.phpCacheFlush_Locally.phpCacheGroups_Plugin_Admin.phpCacheGroups_Plugin_Admin_View.jsCacheGroups_Plugin_Admin_View.phpCache_File_Generic.phpCdn_AdminActions.phpCdn_GeneralPage_View.phpCdn_Highwinds_Widget_View.phpCdn_Highwinds_Widget_View_NotConfigured.phpCdn_Plugin.phpCdn_StackPath2_Page_View.phpCdn_StackPath2_Widget_View_Authorized.phpCdn_StackPath2_Widget_View_Unauthorized.phpCdn_StackPath_Page_View.phpCdn_StackPath_Widget_View_Authorized.phpCdn_StackPath_Widget_View_Unauthorized.phpCdnfsd_CloudFront_Page_View.phpCdnfsd_GeneralPage_View.phpCdnfsd_LimeLight_Page_View.phpCdnfsd_StackPath2_Page_View.phpCdnfsd_StackPath_Page_View.phpCdnfsd_TransparentCDN_Page_View.phpConfigCompiler.phpConfigKeys.phpDbCache_Environment.phpDbCache_Page.phpDbCache_Plugin.phpDbCache_Wpdb.phpDbCache_WpdbNew.phpDispatcher.phpExtension_Amp_Page_View.phpExtension_CloudFlare_Cdn_Page_View.phpExtension_CloudFlare_GeneralPage_View.phpExtension_CloudFlare_Page_View.phpExtension_CloudFlare_Plugin_Admin.phpExtension_FragmentCache_GeneralPage_View.phpExtension_FragmentCache_Page_View.phpExtension_FragmentCache_Plugin.phpExtension_FragmentCache_Plugin_Admin.phpExtension_Genesis_Page_View.phpExtension_ImageService_Page_View.phpExtension_ImageService_Plugin_Admin.phpExtension_NewRelic_GeneralPage_View.phpExtension_NewRelic_Page_View_Apm.phpExtension_Swarmify_Page_View.phpExtension_Wpml_Plugin_Admin.phpExtensions_Plugin_Admin.phpFeatureShowcase_Plugin_Admin.phpFeatureShowcase_Plugin_Admin_View.phpGeneric_AdminActions_Default.phpGeneric_AdminActions_Flush.phpGeneric_Page_Dashboard_View.cssGeneric_Plugin.phpGeneric_Plugin_Admin.phpGeneric_WidgetCommunity_View.phpGeneric_WidgetServices.phpGeneric_WidgetServices_View.phpLicensing_Plugin_Admin.phpMinify_Plugin.phpMinify_Plugin_Admin.phpMobile_Base.phpObjectCache_Environment.phpObjectCache_Page.phpObjectCache_Plugin.phpObjectCache_Plugin_Admin.phpObjectCache_WpObjectCache.phpObjectCache_WpObjectCache_Regular.phpPageSpeed_Api.phpPageSpeed_Instructions.phpPageSpeed_Page.phpPageSpeed_Page_View.cssPageSpeed_Page_View.jsPageSpeed_Widget.phpPgCache_ContentGrabber.phpPgCache_Plugin.phpRoot_AdminMenu.phpRoot_Loader.phpSetupGuide_Plugin_Admin.phpSupport_Page.phpSupport_Page_View_DoneContent.phpSystemOpCache_GeneralPage_View.phpUsageStatistics_GeneralPage_View.phpUsageStatistics_Page.phpUsageStatistics_Page_View_Free.phpUsageStatistics_Widget_View_Disabled.phpUserExperience_DeferScripts_Extension.phpUserExperience_DeferScripts_Mutator.phpUserExperience_DeferScripts_Page_View.phpUserExperience_DeferScripts_Script.jsUserExperience_GeneralPage_View.phpUserExperience_LazyLoad_Page_View.phpUserExperience_Page_View.phpUserExperience_Plugin_Admin.phpUtil_Admin.phpUtil_AttachToActions.phpUtil_Environment.phpUtil_PageSpeed.phpUtil_PageUrls.phpUtil_Ui.phpVarnish_Plugin.phpreadme.txt
extension-example
inc
lightbox
options
about.phpbrowsercache.phpcdn.php
common
dashboard.phpdbcache.phpedd
enterprise
extensions.phpextensions
general.phpinstall.phpminify.phpobjectcache.phpparts
pgcache.phpsupport.phppopup
cdn_export_file.phpcdn_export_library.phpcdn_import_library.phpcdn_purge.phpcdn_queue.phpcdn_rename_domain.php
wizard
languages
pub
css
js
vendor
autoload.php
w3-total-cache-api.phpw3-total-cache.phpcomposer
guzzlehttp
guzzle
.editorconfig.gitattributes
.github
Makefilebuild
docs
Makefile
phpstan-baseline.neonphpstan.neon.distphpunit.xml.dist_static
conf.pyfaq.rsthandlers-and-middleware.rstindex.rstoverview.rstpsr7.rstquickstart.rstrequest-options.rstrequirements.txttesting.rsttests
ClientTest.php
Cookie
Exception
Handler
CurlFactoryTest.phpCurlHandlerTest.phpCurlMultiHandlerTest.phpEasyHandleTest.phpMockHandlerTest.phpProxyTest.phpStreamHandlerTest.php
HandlerStackTest.phpInternalUtilsTest.phpMessageFormatterTest.phpMiddlewareTest.phpPoolTest.phpPrepareBodyMiddlewareTest.phpRedirectMiddlewareTest.phpRetryMiddlewareTest.phpServer.phpTransferStatsTest.phpUriTemplateTest.phpbootstrap.phpfunctionsTest.phpserver.jspsr7
.editorconfig.gitattributes.travis.ymlMakefilephpunit.xml.dist
.github
workflows
tests
AppendStreamTest.phpBaseTest.phpBufferStreamTest.phpCachingStreamTest.phpDroppingStreamTest.phpFnStreamTest.phpHasToString.phpHeaderTest.phpHelpers.phpInflateStreamTest.php
Integration
LazyOpenStreamTest.phpLimitStreamTest.phpMessageTest.phpMimeTypeTest.phpMultipartStreamTest.phpNoSeekStreamTest.phpPumpStreamTest.phpQueryTest.phpReadSeekOnlyStream.phpRequestTest.phpResponseTest.phpServerRequestTest.phpStreamDecoratorTraitTest.phpStreamTest.phpStreamWrapperTest.phpUploadedFileTest.phpUriComparatorTest.phpUriNormalizerTest.phpUriResolverTest.phpUriTest.phpUtilsTest.phpwp-content
@ -13,6 +13,10 @@ class Extension_FragmentCache_Plugin_Admin {
|
||||
static public function w3tc_extensions( $extensions, $config ) {
|
||||
$requirements = array();
|
||||
|
||||
if ( ! Util_Environment::is_w3tc_pro( $config ) ) {
|
||||
$requirements[] = __( 'Valid W3 Total Cache Pro license', 'w3-total-cache' );
|
||||
}
|
||||
|
||||
$extensions['fragmentcache'] = array (
|
||||
'name' => 'Fragment Cache',
|
||||
'author' => 'W3 EDGE',
|
||||
@ -30,8 +34,7 @@ class Extension_FragmentCache_Plugin_Admin {
|
||||
'version' => '1.0',
|
||||
'enabled' => empty( $requirements ),
|
||||
'requirements' => implode( ', ', $requirements ),
|
||||
'active_frontend_own_control' => true,
|
||||
'path' => 'w3-total-cache/Extension_FragmentCache_Plugin.php'
|
||||
'path' => 'w3-total-cache/Extension_FragmentCache_Plugin.php',
|
||||
);
|
||||
|
||||
return $extensions;
|
||||
@ -86,9 +89,11 @@ class Extension_FragmentCache_Plugin_Admin {
|
||||
|
||||
public function w3tc_extension_plugin_links( $links ) {
|
||||
$links = array();
|
||||
$links[] = '<a class="edit" href="' .
|
||||
esc_attr( Util_Ui::admin_url( 'admin.php?page=w3tc_fragmentcache' ) ) .
|
||||
'">'. __( 'Settings' ).'</a>';
|
||||
|
||||
if ( $this->_config->is_extension_active_frontend( 'fragmentcache' ) && Util_Environment::is_w3tc_pro( $this->_config ) ) {
|
||||
$links[] = '<a class="edit" href="' . esc_attr( Util_Ui::admin_url( 'admin.php?page=w3tc_fragmentcache' ) ) . '">'
|
||||
. __( 'Settings', 'w3-total-cache' ) . '</a>';
|
||||
}
|
||||
|
||||
return $links;
|
||||
}
|
||||
@ -97,13 +102,14 @@ class Extension_FragmentCache_Plugin_Admin {
|
||||
|
||||
|
||||
public function w3tc_admin_menu( $menu ) {
|
||||
$menu['w3tc_fragmentcache'] = array(
|
||||
'page_title' => __( 'Fragment Cache', 'w3-total-cache' ),
|
||||
'menu_text' => '<span class="w3tc_menu_item_pro">' .
|
||||
__( 'Fragment Cache', 'w3-total-cache' ) . '</span>',
|
||||
'visible_always' => false,
|
||||
'order' => 1100
|
||||
);
|
||||
if ( $this->_config->is_extension_active_frontend( 'fragmentcache' ) && Util_Environment::is_w3tc_pro( $this->_config ) ) {
|
||||
$menu['w3tc_fragmentcache'] = array(
|
||||
'page_title' => __( 'Fragment Cache', 'w3-total-cache' ),
|
||||
'menu_text' => '<span class="w3tc_menu_item_pro">' . __( 'Fragment Cache', 'w3-total-cache' ) . '</span>',
|
||||
'visible_always' => false,
|
||||
'order' => 1100,
|
||||
);
|
||||
}
|
||||
|
||||
return $menu;
|
||||
}
|
||||
@ -111,13 +117,12 @@ class Extension_FragmentCache_Plugin_Admin {
|
||||
|
||||
|
||||
public function w3tc_admin_bar_menu( $menu_items ) {
|
||||
if ( $this->_config->is_extension_active_frontend( 'fragmentcache' ) ) {
|
||||
if ( $this->_config->is_extension_active_frontend( 'fragmentcache' ) && Util_Environment::is_w3tc_pro( $this->_config ) ) {
|
||||
$menu_items['20510.fragmentcache'] = array(
|
||||
'id' => 'w3tc_flush_fragmentcache',
|
||||
'id' => 'w3tc_flush_fragmentcache',
|
||||
'parent' => 'w3tc_flush',
|
||||
'title' => __( 'Fragment Cache: All Fragments', 'w3-total-cache' ),
|
||||
'href' => wp_nonce_url( admin_url(
|
||||
'admin.php?page=w3tc_dashboard&w3tc_flush_fragmentcache' ), 'w3tc' )
|
||||
'title' => __( 'Fragment Cache', 'w3-total-cache' ),
|
||||
'href' => wp_nonce_url( admin_url( 'admin.php?page=w3tc_dashboard&w3tc_flush_fragmentcache' ), 'w3tc' )
|
||||
);
|
||||
}
|
||||
|
||||
@ -134,14 +139,7 @@ class Extension_FragmentCache_Plugin_Admin {
|
||||
|
||||
|
||||
public function w3tc_config_save( $config ) {
|
||||
// frontend activity
|
||||
$engine = $config->get_string( array( 'fragmentcache', 'engine' ) );
|
||||
|
||||
$is_frontend_active = ( !empty( $engine ) &&
|
||||
Util_Environment::is_w3tc_pro( $config ) );
|
||||
|
||||
$config->set_extension_active_frontend( 'fragmentcache',
|
||||
$is_frontend_active );
|
||||
$config->set_extension_active_frontend( 'fragmentcache', Util_Environment::is_w3tc_pro( $config ) );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user