Skip to content

Commit

Permalink
Removes needless assignment of $page_slug = $post->post_name
Browse files Browse the repository at this point in the history
Removing this assignment, since `$page_slug` is unused elsewhere in the theme, and there is no need to
obfuscate what we are passing to `body_class`.
  • Loading branch information
adamnbowen committed Sep 13, 2011
1 parent 8b0bd62 commit 4d8ac40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
</head>

<body <?php if (isset($post)) {
$page_slug = $post->post_name;
body_class($page_slug);
body_class($post->post_name);
} else {
body_class();
}?>>
Expand Down

0 comments on commit 4d8ac40

Please sign in to comment.