Skip to content
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

Update deprecated showposts parameter to posts_per_page #1313

Merged
merged 1 commit into from
Sep 26, 2016

Conversation

rclations
Copy link

posts_per_page was introduced in WP 2.1, replacing/deprecating the showposts parameter

There was a bug where posts_per_page worked on WP_query but not in get_posts(), but that was fixed in WP 3.1

For more information, see:
https://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters
http://stackoverflow.com/a/3335128
http://core.trac.wordpress.org/ticket/15150

@aschweigert aschweigert merged commit f41051d into develop Sep 26, 2016
@aschweigert aschweigert deleted the update-deprecated-showposts-param branch September 26, 2016 16:25
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.

3 participants