{"id":41664,"date":"2015-10-15T15:18:39","date_gmt":"2015-10-15T15:18:39","guid":{"rendered":"https:\/\/es.wordpress.org\/support\/topic\/unexpected-end-en-archivo-functionsphp\/"},"modified":"2016-08-06T00:44:05","modified_gmt":"2016-08-06T00:44:05","slug":"unexpected-end-en-archivo-functionsphp","status":"closed","type":"topic","link":"https:\/\/es.wordpress.org\/support\/topic\/unexpected-end-en-archivo-functionsphp\/","title":{"rendered":"Unexpected $end en archivo functions.php"},"content":{"rendered":"<p>Buenos d\u00edas<\/p>\n<p>Soy el nuevo webmaster del sitio <a href=\"http:\/\/www.tererecast.com\/\">tererecast<\/a> y desde ayer estoy teniendo un grave problema que cada vez que parece que lo voy a solucionar empeora. <\/p>\n<p>Ayer estaba haciendo cambios en el sitio con plugins y dem\u00e1s hasta que quise agregar algo al archivo de functions.php para que apareciera el block de author al final de los posts. No funcion\u00f3 asi que lo elimin\u00e9. Despu\u00e9s de eso me apareci\u00f3 la WSOD y no pude m\u00e1s ingresar al sitio. Pus\u00e9 en modo debug y no me sali\u00f3 nada hasta hoy despu\u00e9s de borrar un \/ que quedaba al final de mi functions.php. <\/p>\n<p>Al eliminar ese caracter supuse que todo iba a volver a la normalidad pero me sale error tras error en diferentes lineas del archivo que jam\u00e1s toqu\u00e9 y como yo no soy muy experto en c\u00f3digos no estoy pudiendo solucionar ni con la ayuda de google. <\/p>\n<p>El error es el siguiente: <\/p>\n<p><strong>Parse error: syntax error, unexpected $end in \/home2\/geekspy\/public_html\/tererecast.com\/wp-includes\/functions.php on line 4995<\/strong><\/p>\n<p>El c\u00f3digo es la siguiente:<\/p>\n<pre><code>\/**\n * Check whether a user is still logged in, for the heartbeat.\n *\n * Send a result that shows a log-in box if the user is no longer logged in,\n * or if their cookie is within the grace period.\n *\n * @since 3.6.0\n *\n * @global int $login_grace_period\n *\n * @param array $response  The Heartbeat response.\n * @return array $response The Heartbeat response with &#039;wp-auth-check&#039; value set.\n *\/\nfunction wp_auth_check( $response ) {\n\t$response[&#039;wp-auth-check&#039;] = is_user_logged_in() &amp;&amp; empty( $GLOBALS[&#039;login_grace_period&#039;] );\n\treturn $response;\n}<\/code><\/pre>\n<p>Realmente no se donde puede estar el error y apreciar\u00eda que me iluminaran con una respuesta. Ya he probado de todo. Incluso eliminado y subido de nuevo el archivo original de functions y nada.<\/p>\n","protected":false},"template":"","class_list":["post-41664","topic","type-topic","status-closed","hentry","topic-tag-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/41664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/41664\/revisions"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=41664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}