{"id":14450447,"date":"2021-05-17T23:44:04","date_gmt":"2021-05-17T23:44:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/debug-notice-18\/"},"modified":"2021-05-17T23:44:04","modified_gmt":"2021-05-17T23:44:04","slug":"debug-notice-18","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/debug-notice-18\/","title":{"rendered":"Debug notice"},"content":{"rendered":"<p>Debug swears:<br \/>\n&#8220;The <code>WP_Scripts::localize<\/code> function is called incorrectly. The parameter <code>$l10n<\/code><br \/>\nmust be an array. To pass arbitrary data to scripts, use<br \/>\nthe <code>wp_add_inline_script()<\/code> function.<br \/>\nFor more information, see the &#8220;Debugging in WordPress&#8221; page. (This message was added in version 5.7.0.) ..\/wp-includes\/functions.php on line 5313.&#8221;<br \/>\nI found <code>$l10n<\/code> in class-field-company-info-missing.php:<br \/>\n<code>Line 21: $l10n_data = WPSEO_Language_Utils::get_knowledge_graph_company_info_missing_l10n();<\/code>,<br \/>\n<code>Line 23: $this-&gt;set_property( &#039;message&#039;, $l10n_data[&#039;message&#039;] );<\/code>,<br \/>\n<code>Line 24: $this-&gt;set_property( &#039;link&#039;, $l10n_data[&#039;URL&#039;] );<\/code><\/p>\n","protected":false},"template":"","class_list":["post-14450447","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14450447","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\/14450447\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14450447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}