[theme-reviewers] $content_width

Srikanth Koneru tskk79 at gmail.com
Mon Apr 28 12:46:06 UTC 2014


Since we are required to put $content_width in setup function, should it be
declared as global or is it not necessary?

function themename_setup() {
global $content_width;
if ( ! isset( $content_width ) ){
      $content_width = 640;
}
}
add_action( 'after_setup_theme', 'themename_setup' );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140428/f3db35fc/attachment.html>


More information about the theme-reviewers mailing list