<div dir="ltr">Yes, inside of a callback, $content_width must be declared as a global before use.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 28, 2014 at 8:46 AM, Srikanth Koneru <span dir="ltr"><<a href="mailto:tskk79@gmail.com" target="_blank">tskk79@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Since we are required to put $content_width in setup function, should it be declared as global or is it not necessary?<br>
<br>function themename_setup() {<br>global $content_width; <br>if ( ! isset( $content_width ) ){ <br>
$content_width = 640; <br>}<br>}<br>add_action( 'after_setup_theme', 'themename_setup' );<br></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>