Plugin Directory

Changeset 1178754


Ignore:
Timestamp:
06/11/2015 06:35:41 AM (11 years ago)
Author:
hitoy
Message:

fix document root test error

Location:
super-static-cache/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • super-static-cache/trunk/readme.txt

    r1152688 r1178754  
    55Requires at least: 3.0.1
    66Tested up to: 4.2
    7 Stable tag: 3.1.2
     7Stable tag: 3.1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2727
    2828== Upgrade Notice ==
     29= 3.1.3 =
     30* Fixed Bug document root test error
     31
    2932= 3.1.2 =
    3033* Fixed Bug When update a page that cache not update
  • super-static-cache/trunk/super-static-cache.php

    r1120920 r1178754  
    44Plugin URI: http://www.hitoy.org/super-static-cache-for-wordperss.html
    55Description: Super static Cache plugins for Wordpress with a simple configuration and more efficient caching Efficiency, to make your website loader faster than ever. It will cache the html content of your post directly into your website directory.
    6 Version: 3.1.2
     6Version: 3.1.3
    77Author: Hitoy
    88Author URI: http://www.hitoy.org/
     
    136136
    137137    public function __construct(){
    138         $this->docroot = str_replace("//","/",str_replace("\\","/",$_SERVER["DOCUMENT_ROOT"])."//");
     138        $this->docroot = str_replace("//","/",str_replace("\\","/",realpath($_SERVER["DOCUMENT_ROOT"]))."//");
    139139        $this->wppath = str_replace("\\","/",ABSPATH);
    140140        $this->cachemod = get_option("super_static_cache_mode");
Note: See TracChangeset for help on using the changeset viewer.