Parse error : unexpected T_STRING functions.php
-
Hi, i am seeing the following message when i log on to my website https://www.smilespreaders.org –
Parse error: syntax error, unexpected T_STRING in /home/content/69/7786769/html/smilespreaders/wp-includes/functions.php on line 3742
Any assistance will be appreciated.
Line 3742 corresponds to }turn bool true|false )
The rest of the code –
/** * Test if the current device has the capability to upload files. * * @since 3.4.0 * @access private * * @return bool true|false */ function _device_can_upload() { if ( ! wp_is_mobile() ) return true; $ua = $_SERVER['HTTP_USER_AGENT']; if ( strpos($ua, 'iPhone') !== false || strpos($ua, 'iPad') !== false || strpos($ua, 'iPod') !== false ) { return preg_match( '#OS ([\d_]+) like Mac OS X#', $ua, $version ) && version_compare( $version[1], '6', '>=' ); } else { return true; } }turn bool true|false */ function _device_can_upload() { if ( ! wp_is_mobile() ) return true; $ua = $_SERVER['HTTP_USER_AGENT']; if ( strpos($ua, 'iPhone') !== false || strpos($ua, 'iPad') !== false || strpos($ua, 'iPod') !== false ) { return preg_match( '#OS ([\d_]+) like Mac OS X#', $ua, $version ) && version_compare( $version[1], '6', '>=' ); } else { return true; } }
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Parse error : unexpected T_STRING functions.php’ is closed to new replies.