Permalink
Browse files

Use $post->ID, not $post_id.

  • Loading branch information...
1 parent 23bbea0 commit 475d4a79c6381b67d7027edffc7bbda80ed079ec @justintadlock committed Sep 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 extensions/post-stylesheets.php
@@ -151,15 +151,15 @@ function post_stylesheets_stylesheet_uri( $stylesheet_uri, $stylesheet_dir_uri )
$stylesheet_uri = trailingslashit( $stylesheet_dir_uri ) . "css/{$stylesheet}";
/* Set the post stylesheet to the correct directory. */
- set_post_stylesheet( $post_id, str_replace( get_stylesheet_directory_uri(), 'css/', $stylesheet_uri ) );
+ set_post_stylesheet( $post->ID, str_replace( get_stylesheet_directory_uri(), 'css/', $stylesheet_uri ) );
}
/* Else, if the stylesheet is found in the parent theme '/css' folder, use it. */
elseif ( file_exists( trailingslashit( get_template_directory() ) . "css/{$stylesheet}" ) ) {
$stylesheet_uri = trailingslashit( get_template_directory_uri() ) . "css/{$stylesheet}";
/* Set the post stylesheet to the correct directory. */
- set_post_stylesheet( $post_id, str_replace( get_template_directory_uri(), 'css/', $stylesheet_uri ) );
+ set_post_stylesheet( $post->ID, str_replace( get_template_directory_uri(), 'css/', $stylesheet_uri ) );
}
}
}

0 comments on commit 475d4a7

Please sign in to comment.