{"id":5153868,"date":"2014-08-02T17:49:13","date_gmt":"2014-08-02T17:49:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/small-php-error\/"},"modified":"2016-08-21T23:51:41","modified_gmt":"2016-08-21T23:51:41","slug":"small-php-error","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/small-php-error\/","title":{"rendered":"Small php error"},"content":{"rendered":"<p>Hi, <\/p>\n<p>I&#8217;ve found a small syntax error.<\/p>\n<p><code>$errors[&#039;captcha&#039;] = _( &#039;Please complete the CAPTCHA.&#039;, &#039;yourtextdomain&#039; );<\/code><\/p>\n<p>should be:<\/p>\n<p><code>$errors[&#039;captcha&#039;] = __( &#039;Please complete the CAPTCHA.&#039;, &#039;yourtextdomain&#039; );<\/code><\/p>\n<p>text domain requires 2 underscores.<\/p>\n<p>With one you get a warning in error log:<\/p>\n<p>Warning: _() expects exactly 1 parameter, 2 given in \u2026.\/functions.php on line xyz<\/p>\n<p>Thank you<\/p>\n<p>https:\/\/wordpress.org\/plugins\/simple-recaptcha\/<\/p>\n","protected":false},"template":"","class_list":["post-5153868","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5153868","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\/5153868\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5153868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}