bugfix: Call to undefined function get_blog_option
This commit is contained in:
parent
c867483087
commit
bdbf99255a
3 changed files with 11 additions and 4 deletions
|
@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
||||||
Tags: cache, page cache, full page cache, nginx, memcached, apc, speed
|
Tags: cache, page cache, full page cache, nginx, memcached, apc, speed
|
||||||
Requires at least: 3.0
|
Requires at least: 3.0
|
||||||
Tested up to: 3.5.2
|
Tested up to: 3.5.2
|
||||||
Stable tag: 1.2
|
Stable tag: 1.2.1
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
|
||||||
|
@ -87,6 +87,13 @@ Please post feature requests to [WP-FFPC feature request topic](http://wordpress
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.2.1 =
|
||||||
|
*2013-07-23"
|
||||||
|
|
||||||
|
What's fixed:
|
||||||
|
|
||||||
|
* call to undefined function get_blog_option error fixed
|
||||||
|
|
||||||
= 1.2 =
|
= 1.2 =
|
||||||
*2013-07-17*
|
*2013-07-17*
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7dd47c2aee035282c090b2479e3019338758b3b4
|
Subproject commit 3f1571dac3eeea09b0c6cfadb9616bb301d3bcf5
|
|
@ -1075,7 +1075,7 @@ if ( ! class_exists( 'WP_FFPC' ) ) {
|
||||||
$current_blog = get_current_blog_id();
|
$current_blog = get_current_blog_id();
|
||||||
switch_to_blog( $site );
|
switch_to_blog( $site );
|
||||||
|
|
||||||
$url = $this->_site_url();
|
$url = $this->_site_url( $site );
|
||||||
//$url = get_blog_option ( $site, 'siteurl' );
|
//$url = get_blog_option ( $site, 'siteurl' );
|
||||||
if ( substr( $url, -1) !== '/' )
|
if ( substr( $url, -1) !== '/' )
|
||||||
$url = $url . '/';
|
$url = $url . '/';
|
||||||
|
@ -1115,7 +1115,7 @@ if ( ! class_exists( 'WP_FFPC' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* in case the bloglinks are relative links add the base url, site specific */
|
/* in case the bloglinks are relative links add the base url, site specific */
|
||||||
$baseurl = $this->_site_url();
|
$baseurl = empty( $url ) ? $this->_site_url() : $url;
|
||||||
if ( !strstr( $permalink, $baseurl ) ) {
|
if ( !strstr( $permalink, $baseurl ) ) {
|
||||||
$permalink = $baseurl . $permalink;
|
$permalink = $baseurl . $permalink;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue