{"id":19016914,"date":"2026-09-10T18:14:31","date_gmt":"2026-09-10T18:14:31","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/feature-request-line-count\/"},"modified":"2026-09-10T18:14:31","modified_gmt":"2026-09-10T18:14:31","slug":"feature-request-line-count","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/feature-request-line-count\/","title":{"rendered":"Feature request: Line count"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Whenever I come across an error in the logs like the following, I realize that I could use a column for Line Count in the list of active Snippets. This would help more quickly identify which of the Snippets could be causing a rather generic error to show up in the logs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s a sample error log where one needs to locate snippets that contain at least 151 lines of code to review each:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PHP Warning: Trying to access array offset on false in \/srv\/htdocs\/wp-content\/plugins\/code-snippets\/php\/snippet-ops.php(822) : eval()'d code on line 151<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you,<\/p>\n","protected":false},"template":"","class_list":["post-19016914","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19016914","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\/19016914\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19016914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}