updated plugin W3 Total Cache version 2.7.0

This commit is contained in:
2024-03-28 09:40:06 +00:00
committed by Gitium
parent 60de585044
commit 218272bbcb
140 changed files with 3054 additions and 3013 deletions

View File

@ -50,7 +50,7 @@ class UserExperience_Preload_Requests_Extension {
add_filter( 'w3tc_save_options', array( $this, 'w3tc_save_options' ) );
// Renders the Preload Reqeusts settings metabox on the User Expereince advanced setting page.
add_action( 'w3tc_userexperience_page', array( $this, 'w3tc_userexperience_page' ) );
add_action( 'w3tc_userexperience_page', array( $this, 'w3tc_userexperience_page' ), 20 );
// This filter is documented in Generic_AdminActions_Default.php under the read_request method.
add_filter( 'w3tc_config_key_descriptor', array( $this, 'w3tc_config_key_descriptor' ), 10, 2 );
@ -68,7 +68,9 @@ class UserExperience_Preload_Requests_Extension {
* @return void
*/
public function w3tc_userexperience_page() {
include __DIR__ . '/UserExperience_Preload_Requests_Page_View.php';
if ( self::is_enabled() ) {
include __DIR__ . '/UserExperience_Preload_Requests_Page_View.php';
}
}
/**
@ -143,7 +145,7 @@ class UserExperience_Preload_Requests_Extension {
foreach ( $preconnect as $url ) {
echo '<link rel="preconnect" href="' . esc_url( $url ) . '" crossorigin>';
}
$dns_prefetch = $this->config->get_array( array( 'user-experience-preload-requests', 'dns-prefetch' ) );
foreach ( $dns_prefetch as $url ) {
echo '<link rel="dns-prefetch" href="' . esc_url( $url ) . '">';