Ver 4.8 breaks site
-
After upgrade to v4.8 found my site unavailable. Turned on logging and got:
Parse error: syntax error, unexpected ‘[‘ in /home/…/wp-content/plugins/xml-sitemap-feed/includes/class-xmlsitemapfeed.php on line 275
There I found (275 is bold):
// news sitemap tags settings
$this->defaults[‘news_tags’] = array(
‘name’ => ”,
‘post_type’ => [‘post’],
‘categories’ => ”,
‘image’ => ‘featured’,
‘access’ => array(
‘default’ => ”,I looked to ver 4.7 and there was ‘post_type’ => array(‘post’),
So I returned previous syntax and my site is alive again.
I do not know PHP so have no idea if this change was necessary or just mistake, and if necessary, how can I make my site work with [‘post’].
- The topic ‘Ver 4.8 breaks site’ is closed to new replies.