{"id":12247317,"date":"2019-12-17T16:15:47","date_gmt":"2019-12-17T16:15:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/protect-admin-bug\/"},"modified":"2019-12-17T16:15:47","modified_gmt":"2019-12-17T16:15:47","slug":"protect-admin-bug","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/protect-admin-bug\/","title":{"rendered":"Protect admin &#8216;bug&#8217;"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>when working with your plugins I found a &#8216;bug&#8217; in the protect-admin class.<br \/>\nIn the function exclude_administrators() it searches for &#8216;%administrator%&#8217; in the usermeta capabilities. Since I have a custom role called &#8216;site_administrator&#8217;, it also hides those users.<br \/>\nIf you change &#8216;%administrator%&#8217; to &#8216;%&#8221;administrator&#8221;%&#8217; (with the double quotes), it works in the correct way.<br \/>\nAs far as I know this should be possible to use, since the role is in the database with &#8220;&#8221; around it because of the serialize.<\/p>\n","protected":false},"template":"","class_list":["post-12247317","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12247317","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\/12247317\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12247317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}