{"id":4000559,"date":"2013-08-06T11:22:56","date_gmt":"2013-08-06T11:22:56","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-strict-error\/"},"modified":"2016-08-21T03:40:03","modified_gmt":"2016-08-21T03:40:03","slug":"php-strict-error","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-strict-error\/","title":{"rendered":"PHP Strict error"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I&#8217;m receiving a PHP Strict error in my error log (PHP 5.4).<\/p>\n<p>I&#8217;ve been able to prevent it by changing the order of the __construct() and SLT_LockPages() functions should be changed (I&#8217;m not kidding).<\/p>\n<p>So it should be:<\/p>\n<pre><code>class SLT_LockPages {\n    \/\/ code\n    function __construct() { \/* code *\/ }\n\n    function SLT_LockPages() { \/* code *\/ }\n\n    \/\/ code\n}<\/code><\/pre>\n<p>https:\/\/wordpress.org\/plugins\/lock-pages\/<\/p>\n","protected":false},"template":"","class_list":["post-4000559","topic","type-topic","status-closed","hentry","topic-tag-strict"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4000559","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\/4000559\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4000559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}