{"id":4427039,"date":"2013-12-18T19:54:41","date_gmt":"2013-12-18T19:54:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/warnings-13\/"},"modified":"2016-08-21T13:39:28","modified_gmt":"2016-08-21T13:39:28","slug":"warnings-13","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/warnings-13\/","title":{"rendered":"Warnings"},"content":{"rendered":"<p>Hi,<br \/>\nThank you for the plugin!<\/p>\n<p>Installing and activating it i am getting the warning:<\/p>\n<pre><code>Missing argument 2 for wpdb::prepare(), called in [......]plugins\/category-icons\/category_icons.php on line 1047<\/code><\/pre>\n<p>and<\/p>\n<pre><code>Missing argument 2 for wpdb::prepare(), called in [...]\/plugins\/category-icons\/category_icons.php on line 1338<\/code><\/pre>\n<p>I might be wrong but i believe that since you do not pass any variables into those queries you do not need to use prepare.<br \/>\nSo for me, removing prepare from the two queries also removed the warnings.<\/p>\n<p>Thank you<br \/>\nEyal<\/p>\n<p>https:\/\/wordpress.org\/plugins\/category-icons\/<\/p>\n","protected":false},"template":"","class_list":["post-4427039","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4427039","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\/4427039\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4427039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}