Conversation
supportHi Daniele, any suggestions on this error? Parse error: syntax error, unexpected ‘[‘ in /var/www/web191/html/staging/wp-content/plugins/super-link-preview/super-link-preview.php on line 258 private function shortcodes_url($content) { —–> $urls = []; $pattern = get_shortcode_regex(); https://wordpress.org/plugins/super-link-preview/
I just had the same error using php version 5.3 – I think maybe this is new syntax for php 5.4? http://php.net/manual/en/migration54.new-features.php I changed that line to be the old-fashioned: $urls = array(); and the plugin now seems to activate for me (haven’t tested if it actually works yet…!) Tom
I just had the same error using php version 5.3 – I think maybe this is new syntax for php 5.4? http://php.net/manual/en/migration54.new-features.php I changed that line to be the old-fashioned: $urls = array(); and the plugin now seems to activate for me (haven’t tested if it actually works yet…!) Tom