Deprecate argument. Never fallback to options table for user option requests. Props nacin. fixes #11615

git-svn-id: https://develop.svn.wordpress.org/trunk@12616 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-07 00:01:52 +00:00
parent e7003d6c95
commit dfe2e39c2c
10 changed files with 20 additions and 19 deletions

View File

@@ -226,7 +226,7 @@ unset($status_links);
</p>
<?php
$comments_per_page = (int) get_user_option( 'edit_comments_per_page', 0, false );
$comments_per_page = (int) get_user_option( 'edit_comments_per_page' );
if ( empty( $comments_per_page ) || $comments_per_page < 1 )
$comments_per_page = 20;
$comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status );