C:\xampp\htdocs\landing\wp-content\plugins\hummingbird-performance\core\integration\class-wph.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
 * Compatibility with WP Hide & Security Enhancer.
 *
 * @since 1.9.4
 * @package Hummingbird\Core\Integration
 */

namespace Hummingbird\Core\Integration;

if ( ! 
defined'ABSPATH' ) ) {
    exit;
}

/**
 * Class WPH
 */
class WPH {

    
/**
     * WP_Hummingbird_WPH_Integration constructor.
     *
     * @since 1.9.4
     */
    
public function __construct() {
        
add_action'init', array( $this'enable_integration' ) );
    }

    
/**
     * Enable integration.
     *
     * @since 1.9.4
     */
    
public function enable_integration() {
        
// If WP Hide & Security Enhancer is not enabled - return.
        
if ( ! defined'WPH_PATH' ) || ! defined'WPH_CORE_VERSION' ) ) {
            return;
        }

        
// Page caching is not enabled.
        
if ( ! apply_filters'wp_hummingbird_is_active_module_page_cache'false ) ) {
            return;
        }

        
add_filter'wphb_cache_content', array( $this'replace_links' ) );
    }

    
/**
     * Replace links when URLs are replaced in WP Hide & Security Enhancer.
     *
     * @since 1.9.4
     *
     * @param string $content  Page buffer.
     *
     * @return string
     */
    
public function replace_links$content ) {
        global 
$wph;

        
$content $wph->ob_start_callback$content );

        return 
$content;
    }

}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586