8000 Use the post ID argument on post_class() in the hierarchical archive pages by benlk · Pull Request #1053 · WPBuddy/largo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use the post ID argument on post_class() in the hierarchical archive pages #1053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2016

Conversation

benlk
Copy link
Collaborator
@benlk benlk commented Jan 7, 2016

Changes

Uses the second argument of post_class() to specify that the classes to be output are from the current post, not for the global $post.

Why

For #1052.

Posts had the wrong classes, most noticeably because the post ID in the classes was not the post ID in the html element ID.

@benlk benlk added the type: bug label Jan 7, 2016
@benlk benlk added this to the 0.5.4 milestone Jan 7, 2016
aschweigert added a commit that referenced this pull request Jan 7, 2016
Use the post ID argument on post_class() in the hierarchical archive pages
@aschweigert aschweigert merged commit 479ce77 into develop Jan 7, 2016
@aschweigert aschweigert deleted the 1052-add-id-to-archive-post-class branch January 7, 2016 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0