wp/wp-admin/includes/comment.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
--- a/wp/wp-admin/includes/comment.php	Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/includes/comment.php	Wed Sep 21 18:19:35 2022 +0200
@@ -75,7 +75,7 @@
 	}
 
 	foreach ( array( 'aa', 'mm', 'jj', 'hh', 'mn' ) as $timeunit ) {
-		if ( ! empty( $_POST[ 'hidden_' . $timeunit ] ) && $_POST[ 'hidden_' . $timeunit ] != $_POST[ $timeunit ] ) {
+		if ( ! empty( $_POST[ 'hidden_' . $timeunit ] ) && $_POST[ 'hidden_' . $timeunit ] !== $_POST[ $timeunit ] ) {
 			$_POST['edit_date'] = '1';
 			break;
 		}
@@ -141,8 +141,8 @@
  *
  * @global wpdb $wpdb WordPress database abstraction object.
  *
- * @param int|array $post_id Either a single Post ID or an array of Post IDs
- * @return int|array Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs
+ * @param int|int[] $post_id Either a single Post ID or an array of Post IDs
+ * @return int|int[] Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs
  */
 function get_pending_comments_num( $post_id ) {
 	global $wpdb;