{"id":5239934,"date":"2014-08-30T12:10:16","date_gmt":"2014-08-30T12:10:16","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/several-bugs\/"},"modified":"2016-08-22T00:59:28","modified_gmt":"2016-08-22T00:59:28","slug":"several-bugs","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/several-bugs\/","title":{"rendered":"Several bugs"},"content":{"rendered":"<p>1st bug: frontend where a userphoto is included:<\/p>\n<p>Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in wp-includes\/functions.php on line 3195<\/p>\n<p>fixed by replacing line 77 of user-photo.php:<\/p>\n<p>was:<br \/>\nload_plugin_textdomain(&#8216;user-photo&#8217;, PLUGINDIR . &#8216;\/user-photo\/localization&#8217;); #(thanks Pakus)<\/p>\n<p>changed to:<br \/>\nload_plugin_textdomain(&#8216;user-photo&#8217;, FALSE, dirname(plugin_basename(__FILE__)).&#8217;\/localization\/&#8217;); #(thanks Pakus)<\/p>\n<p>2nd bug, in backend, plugins page:<br \/>\nNotice: has_cap wurde mit einem Parameter oder Argument aufgerufen, der seit Version 2.0 veraltet ist! Die Benutzung von user_level in Plugins und Themes ist veraltet. Nutze stattdessen das Abfragen von roles oder capabilities. in wp-includes\/functions.php on line 3193<\/p>\n<p>fix included:<br \/>\n&#8211; in function userphoto_add_page replaced the user level 8 with &#8216;edit_pages&#8217;<br \/>\ncode now:<br \/>\nadd_options_page(&#8216;User Photo&#8217;, &#8216;User Photo&#8217;, &#8216;edit_pages&#8217;, __FILE__, &#8216;userphoto_options_page&#8217;);<\/p>\n<p>https:\/\/wordpress.org\/plugins\/user-photo\/<\/p>\n","protected":false},"template":"","class_list":["post-5239934","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5239934","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\/5239934\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5239934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}