{"id":5360177,"date":"2014-10-05T22:22:13","date_gmt":"2014-10-05T22:22:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/deprecated-function-8\/"},"modified":"2016-08-22T03:10:07","modified_gmt":"2016-08-22T03:10:07","slug":"deprecated-function-8","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/deprecated-function-8\/","title":{"rendered":"Deprecated function"},"content":{"rendered":"<p>When running this plugin (version 1.0.2) with WP_DEBUG on, it produces the following message on every admin page:<\/p>\n<blockquote>\n<p>&#8220;Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.&#8221;<\/p>\n<\/blockquote>\n<p>Thanks anyway for that useful plugin \ud83d\ude42<\/p>\n<p>https:\/\/wordpress.org\/plugins\/simple-members-only\/<\/p>\n","protected":false},"template":"","class_list":["post-5360177","topic","type-topic","status-closed","hentry","topic-tag-deprecated","topic-tag-has_cap","topic-tag-wp_debug"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5360177","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\/5360177\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5360177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}