<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">Hi all,</div><div class=""><br class=""></div>This is regarding the following ticket: <a href="https://themes.trac.wordpress.org/ticket/18381" class="">https://themes.trac.wordpress.org/ticket/18381</a><div class=""><br class=""></div><div class="">There is some conflict over the interpretation of the rules for prefixing variables:</div><div class=""><br class=""></div><div class=""><blockquote type="cite">Themes are required to use theme-slug ( or a reasonably unique slug) as a prefix for anything in the public namespace, including all custom function names, classes, hooks, public/global variables, database entries (Theme options, post custom metadata, etc.) </blockquote></div><div class=""><br class=""></div><div class="">I am being told I need to prefix every variable used in my theme. Is it correct that even non-global variables need to be prefixed?</div><div class=""><br class=""></div><div class="">For instance, I’m told that <font face="Menlo">$title</font> needs to be changed to <font face="Menlo">$counterpoint_title</font>:</div><div class=""><br></div><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><div class=""><span style="font-family: Menlo;">function counterpoint_no_title($title) {</span></div></div><div class=""><div class=""><font face="Menlo">    if ( $title == '' ) $title = __('Untitled', 'counterpoint');</font></div></div><div class=""><div class=""><font face="Menlo">    return $title;</font></div></div><div class=""><div class=""><font face="Menlo">}</font></div></div><div class=""><div class=""><font face="Menlo">add_filter( 'the_title', 'counterpoint_no_title' );</font></div></div></blockquote><div class=""><div class=""><br></div><div class="">Any insight would be much appreciated.</div><div class=""><br></div><div class="">Thanks,</div><div class="">Evan</div></div></body></html>