Permalink
Browse files

Use THEME_DIR, not THEME_URI, when checking if the parent theme's 'st…

…yle.min.css' file exists.
  • Loading branch information...
1 parent a7c6872 commit 2e4aeaa0e1b018d4318e49c305222b6e69b70d6d @justintadlock committed Dec 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 functions/styles.php
View
2 functions/styles.php
@@ -121,7 +121,7 @@ function hybrid_get_styles() {
$src = trailingslashit( THEME_URI ) . "style.css";
/* If a '.min' version of the parent theme stylesheet exists, use it. */
- if ( !empty( $suffix ) && file_exists( trailingslashit( THEME_URI ) . "style{$suffix}.css" ) )
+ if ( !empty( $suffix ) && file_exists( trailingslashit( THEME_DIR ) . "style{$suffix}.css" ) )
$src = trailingslashit( THEME_URI ) . "style{$suffix}.css";
$styles['parent'] = array( 'src' => $src, 'version' => $parent->get( 'Version' ) );

0 comments on commit 2e4aeaa

Please sign in to comment.