[theme-reviewers] Setting $content_width Dynamically

Edward Caissie edward.caissie at gmail.com
Wed Aug 10 15:21:32 UTC 2011


On Wed, Aug 10, 2011 at 11:11 AM, Chip Bennett <chip at chipbennett.net> wrote:

>  // Apply dynamic width to $content_width
>  global $content_width;
> if ( ! isset( $content_width ) ) {
> $content_width = $dynamic_width;
>  }
>

I know I'm a little "off" today, but shouldn't you be testing if
$dynamic_width is set versus the $content_width ... which you are setting
with function's code above this test?

For example:

> // Apply dynamic width to $content_width
>  global $content_width;
> if ( isset( $dynamic_width ) ) {
> $content_width = $dynamic_width;
>  }
>


Cais.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110810/a661a12f/attachment-0001.htm>


More information about the theme-reviewers mailing list