WordPress.org

Forums

Theme Check
[Plugin: Theme-Check] $GLOBALS['content_width'] not recognized (2 posts)

  1. toscho
    Member
    Posted 2 years ago #

    $GLOBALS['content_width'] = 750; in a theme produces the false error:

    > REQUIRED: No content width has been defined.

    Fix: run a preg_match() on

    '~\$GLOBALS\[\s*([\'"])content_width\\1\s*\]~'

    I write global variables always in the long form to make them stand out and because they are treated slightly different than global $var; $var = 'something';.

    http://wordpress.org/extend/plugins/theme-check/

  2. Robert Chapin
    Member
    Posted 2 years ago #

    Me too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic