Skip to content

Commit

Permalink
Move $content_width within setup function
Browse files Browse the repository at this point in the history
  • Loading branch information
grappler committed Apr 14, 2014
1 parent 2d2f66f commit 1396bff
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
* @package _s
*/

/**
* Set the content width based on the theme's design and stylesheet.
*/
if ( ! isset( $content_width ) ) {
$content_width = 640; /* pixels */
}

if ( ! function_exists( '_s_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
Expand All @@ -22,6 +15,14 @@
*/
function _s_setup() {

/**
* Set the content width based on the theme's design and stylesheet.
*/
global $content_width;
if ( ! isset( $content_width ) ) {
$content_width = 640; /* pixels */
}

/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
Expand Down

0 comments on commit 1396bff

Please sign in to comment.