Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…yle.min.css' file exists.
  • Loading branch information...
commit 2e4aeaa0e1b018d4318e49c305222b6e69b70d6d 1 parent a7c6872
Justin Tadlock authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  functions/styles.php
2  functions/styles.php
View
@@ -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' ) );
Please sign in to comment.
Something went wrong with that request. Please try again.