equal
deleted
inserted
replaced
73 if ( isset( $_POST['comment_ID'] ) ) { |
73 if ( isset( $_POST['comment_ID'] ) ) { |
74 $_POST['comment_ID'] = (int) $_POST['comment_ID']; |
74 $_POST['comment_ID'] = (int) $_POST['comment_ID']; |
75 } |
75 } |
76 |
76 |
77 foreach ( array( 'aa', 'mm', 'jj', 'hh', 'mn' ) as $timeunit ) { |
77 foreach ( array( 'aa', 'mm', 'jj', 'hh', 'mn' ) as $timeunit ) { |
78 if ( ! empty( $_POST[ 'hidden_' . $timeunit ] ) && $_POST[ 'hidden_' . $timeunit ] != $_POST[ $timeunit ] ) { |
78 if ( ! empty( $_POST[ 'hidden_' . $timeunit ] ) && $_POST[ 'hidden_' . $timeunit ] !== $_POST[ $timeunit ] ) { |
79 $_POST['edit_date'] = '1'; |
79 $_POST['edit_date'] = '1'; |
80 break; |
80 break; |
81 } |
81 } |
82 } |
82 } |
83 |
83 |
139 * |
139 * |
140 * @since 2.3.0 |
140 * @since 2.3.0 |
141 * |
141 * |
142 * @global wpdb $wpdb WordPress database abstraction object. |
142 * @global wpdb $wpdb WordPress database abstraction object. |
143 * |
143 * |
144 * @param int|array $post_id Either a single Post ID or an array of Post IDs |
144 * @param int|int[] $post_id Either a single Post ID or an array of Post IDs |
145 * @return int|array Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs |
145 * @return int|int[] Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs |
146 */ |
146 */ |
147 function get_pending_comments_num( $post_id ) { |
147 function get_pending_comments_num( $post_id ) { |
148 global $wpdb; |
148 global $wpdb; |
149 |
149 |
150 $single = false; |
150 $single = false; |