Parse Error ; Syntax Error
-
Can’t visit my website any more: http://www.nhexperience.nl
this error is occuring every time:
Parse error: syntax error, unexpected end of file in /home/yypjfjmp/public_html/nhexperience.nl/wp-includes/link-template.php on line 142
These are the lines 102 – 142
/**
* Retrieve full permalink for current post or post ID.
*
* @since 1.0.0
*
* @param int|WP_Post $id Optional. Post ID or post object. Default current post.
* @param bool $leavename Optional. Whether to keep post name or page name. Default false.
* @return string|bool The permalink URL or false if post does not exist.
*/
function get_permalink( $id = 0, $leavename = false ) {
$rewritecode = array(
‘%year%’,
‘%monthnum%’,
‘%day%’,
‘%hour%’,
‘%minute%’,
‘%second%’,
$leavename? ” : ‘%postname%’,
‘%post_id%’,
‘%category%’,
‘%author%’,
$leavename? ” : ‘%pagename%’,
);if ( is_object($id) && isset($id->filter) && ‘sample’ == $id->filter ) {
$post = $id;
$sample = true;
} else {
$post = get_post($id);
$sample = false;
}if ( empty($post->ID) )
return false;if ( $post->post_type == ‘page’ )
return get_page_link($post, $leavename, $sample);
elseif ( $post->post_type == ‘attachment’ )
return get_attachment_link( $post, $leavename );
elseif ( in_array($post->post_type, get_post_types( array(‘_builtin’ => false) ) ) )I heve no experience with coding so far…. what should I do?
The topic ‘Parse Error ; Syntax Error’ is closed to new replies.