[theme-reviewers] Setting $content_width Dynamically
Chip Bennett
chip at chipbennett.net
Wed Aug 10 18:36:41 UTC 2011
I'm setting $dynamic_width explicitly, then altering its value, based on
conditionals. So, by that point in the code, $dynamic_width is *always* set.
Chip
On Wed, Aug 10, 2011 at 10:21 AM, Edward Caissie
<edward.caissie at gmail.com>wrote:
> 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.
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110810/dea60a6f/attachment.htm>
More information about the theme-reviewers
mailing list