mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
Comments: Ensure all elements in the array returned by get_comment_count() are integers.
Previously elements would be a mixture of strings and integers depending on their numeric value. Props progremzion, m.usama.masood Fixes #48093 git-svn-id: https://develop.svn.wordpress.org/trunk@47526 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -81,7 +81,7 @@ class Tests_Import_Import extends WP_Import_UnitTestCase {
|
||||
$this->assertEquals( 4, $page_count->publish );
|
||||
$this->assertEquals( 1, $page_count->draft );
|
||||
$comment_count = wp_count_comments();
|
||||
$this->assertEquals( 1, $comment_count->total_comments );
|
||||
$this->assertSame( 1, $comment_count->total_comments );
|
||||
|
||||
$posts = get_posts(
|
||||
array(
|
||||
@@ -245,7 +245,7 @@ class Tests_Import_Import extends WP_Import_UnitTestCase {
|
||||
$this->assertEquals( 4, $page_count->publish );
|
||||
$this->assertEquals( 1, $page_count->draft );
|
||||
$comment_count = wp_count_comments();
|
||||
$this->assertEquals( 1, $comment_count->total_comments );
|
||||
$this->assertSame( 1, $comment_count->total_comments );
|
||||
}
|
||||
|
||||
function test_ordering_of_importers() {
|
||||
|
||||
Reference in New Issue
Block a user