Go to file
Boone Gorges 3b89b3ca28 Use 'comments_per_page' option as fallback in `get_page_of_comment()`.
The function now uses the following order of precedence when calculating
comment pagination: 1. the 'per_page' value passed in the `$args` array,
2. the 'comments_per_page' query var in `$wp_query`, and 3. the
'comments_per_page' setting from options-discussion.php. This change allows
`get_page_of_comment()` to return an accurate value before the main query
has been run.

Props laceous.
See #13939.

git-svn-id: https://develop.svn.wordpress.org/trunk@34806 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-03 19:25:25 +00:00
src Use 'comments_per_page' option as fallback in `get_page_of_comment()`. 2015-10-03 19:25:25 +00:00
tests Use 'comments_per_page' option as fallback in `get_page_of_comment()`. 2015-10-03 19:25:25 +00:00
tools/i18n i18n tools: Use https for `msgid-bugs-address` URLs. 2015-07-27 19:37:13 +00:00
.editorconfig Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:28:58 +00:00
.gitignore
.jshintrc
.travis.yml Add PHP Nightlies to the test suite 2015-10-02 16:50:53 +00:00
Gruntfile.js Speed up `browserify` builds, don't `uglify` the media builds on `watch`. 2015-09-09 02:11:23 +00:00
package.json Build Tools: Update `grunt-contrib-uglify` to 0.9.2. 2015-08-25 03:27:23 +00:00
phpunit.xml.dist
wp-cli.yml
wp-config-sample.php Lightly clean up and improve inline documentation in wp-config-sample.php. 2015-05-10 00:05:30 +00:00
wp-tests-config-sample.php