[theme-reviewers] Need A Final Call

Chip Bennett chip at chipbennett.net
Mon Jan 21 14:27:35 UTC 2013


Setting $content_width inside of a callback allows it to be overridden by a
Child Theme. Putting it in the global scope makes it impossible to override.


On Mon, Jan 21, 2013 at 9:01 AM, Michael Fields <michael at mfields.org> wrote:

> In regards to $content_width. This is a global variable recognized by
> core. Conditionally setting it in the global scope is perfectly OK. Themes
> that do this work just as well as themes that hook it into
> after_setup_theme. I do not understand why setting it in the global scope
> would be a requirement. All of the bundled "Twenty" themes do it this way.
> _______________________________________________
> 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/20130121/e882b666/attachment.htm>


More information about the theme-reviewers mailing list