all repos — wp-ffpc @ bdbf99255ac7854fe599ef46fdc054eb4a3be29c

bugfix:  Call to undefined function get_blog_option
Peter Molnar hello@petermolnar.eu
Tue, 23 Jul 2013 11:26:17 +0100
commit

bdbf99255ac7854fe599ef46fdc054eb4a3be29c

parent

c8674830878bb48813b36788744d9aee1843e540

2 files changed, 10 insertions(+), 3 deletions(-)

jump to
M readme.txtreadme.txt

@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XU3DG7LLA76WC

Tags: cache, page cache, full page cache, nginx, memcached, apc, speed Requires at least: 3.0 Tested up to: 3.5.2 -Stable tag: 1.2 +Stable tag: 1.2.1 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html

@@ -86,6 +86,13 @@ 4. memcached servers settings

5. NGiNX example == Changelog == + += 1.2.1 = +*2013-07-23" + +What's fixed: + +* call to undefined function get_blog_option error fixed = 1.2 = *2013-07-17*
M wp-ffpc-class.phpwp-ffpc-class.php

@@ -1075,7 +1075,7 @@ if ( $site !== false ) {

$current_blog = get_current_blog_id(); switch_to_blog( $site ); - $url = $this->_site_url(); + $url = $this->_site_url( $site ); //$url = get_blog_option ( $site, 'siteurl' ); if ( substr( $url, -1) !== '/' ) $url = $url . '/';

@@ -1115,7 +1115,7 @@ break;

} /* 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 ) ) { $permalink = $baseurl . $permalink; }