Parse error: syntax error, unexpected ‘[‘
-
Hi, I updated the plugin and now I’m locked out of WordPress.
The error message shows –
Parse error: syntax error, unexpected ‘[‘ in /home/public_html/wp-content/plugins/ultimate-social-media-plus/libs/sfsi_gutenberg_block.php on line 64
I copied the code from line 60 to 71 of sfsi_gutenberg_block.php:
function sfsi_plus_register_icon_route(){
register_rest_route(SFSI_PLUS_DOMAIN.’/v1′,’icons’,array(
‘methods’=> WP_REST_Server::READABLE,
‘callback’ => ‘sfsi_plus_render_shortcode’,
‘args’=>[
“share_url”=>[
“type”=>’string’,
“sanitize_callback” => ‘sanitize_text_field’
]
]
));
}Can anyone let me know what is the mistake? Thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Parse error: syntax error, unexpected ‘[‘’ is closed to new replies.