WordPress.org

Make WordPress Core

Ticket #48093: 48093.patch

File 48093.patch, 443 bytes (added by progremzion, 2 months ago)
  • src/wp-includes/comment.php

     
    434434                }
    435435        }
    436436
    437         return $comment_count;
     437        /**
     438         * Return integers for all statuses for consistency.
     439         *
     440         * @see https://core.trac.wordpress.org/ticket/48093
     441         */
     442        return array_map('intval', $comment_count);
    438443}
    439444
    440445//