{"id":12362449,"date":"2020-01-24T17:49:55","date_gmt":"2020-01-24T17:49:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/hardcoded-user-id\/"},"modified":"2020-01-24T17:50:11","modified_gmt":"2020-01-24T17:50:11","slug":"hardcoded-user-id","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/hardcoded-user-id\/","title":{"rendered":"Hardcoded User ID?"},"content":{"rendered":"<p>Noticed this in <code>wpc_functions.php<\/code> at line 2584, wpCentral 1.5.0:<\/p>\n<pre><code>$user_info = get_userdata(1);\n<\/code><\/pre>\n<p>Why is the user id hardcoded to <code>1<\/code> here?<\/p>\n<p>Many sites do not have that user (any more), it is often manually removed due to various tutorials about &#8216;hardening&#8217; WordPress or the id of that user is changed\/randomized by various &#8216;security&#8217; plugins etc.<\/p>\n","protected":false},"template":"","class_list":["post-12362449","topic","type-topic","status-publish","hentry","topic-tag-user_id","topic-tag-hardcoded"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12362449","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\/12362449\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12362449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}