/** * Retrieve the top link URL * * @return false|string */ public function getTopLinkUrl() { try { if ($this->isEnabled()) { if ($this->isFullyIntegrated()) { if ($this->_isCached('toplink_url')) { return $this->_cached('toplink_url'); } $transport = new Varien_Object(array('toplink_url' => $this->getUrl())); Mage::dispatchEvent('wordpress_get_toplink_url', array('transport' => $transport)); $this->_cache('toplink_url', $transport->getToplinkUrl()); return $transport->getToplinkUrl(); } return $this->getWpOption('home'); } } catch (Exception $e) { $this->log('Magento & WordPress are not correctly integrated (see entry below).'); $this->log($e->getMessage()); } return false; }