{"id":5612123,"date":"2014-12-26T17:28:24","date_gmt":"2014-12-26T17:28:24","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/not-working-after-wordpress-41-upgrade\/"},"modified":"2016-08-22T13:51:45","modified_gmt":"2016-08-22T13:51:45","slug":"not-working-after-wordpress-41-upgrade","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/not-working-after-wordpress-41-upgrade\/","title":{"rendered":"Not working after WordPress 4.1 upgrade"},"content":{"rendered":"<p>After upgrading to WordPress 4.1, my PHP code is blank on the page.<br \/>\nI have a simple line that will auto-update my age by having PHP tied to my birthdate between the words: &#8220;As a (PHP generated age) year old&#8221;<\/p>\n<p>As a<\/p>\n<pre><code>[insert_php]\n$birthDate = &quot;1\/30\/1985&quot;;\n$birthDate = explode(&quot;\/&quot;, $birthDate);\n$age = (date(&quot;md&quot;, date(&quot;U&quot;, mktime(0, 0, 0, $birthDate[0], $birthDate[1], $birthDate[2]))) &gt; date(&quot;md&quot;)\n? ((date(&quot;Y&quot;) - $birthDate[2]) - 1)\n: (date(&quot;Y&quot;) - $birthDate[2]));\necho $age;\n[\/insert_php]<\/code><\/pre>\n<p>year old<\/p>\n<p>Here is my page (2nd sentence): <a href=\"http:\/\/soapboxarchitect.com\/about\/\">http:\/\/soapboxarchitect.com\/about\/<\/a><\/p>\n<p>https:\/\/wordpress.org\/plugins\/insert-php\/<\/p>\n","protected":false},"template":"","class_list":["post-5612123","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5612123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5612123\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5612123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}