Changeset 48235 for trunk/src/wp-includes/comment.php
- Timestamp:
- 06/30/2020 02:11:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r48230 r48235 2423 2423 * @since 4.9.0 Add updating comment meta during comment update. 2424 2424 * @since 5.5.0 The `$wp_error` parameter was added. 2425 * @since 5.5.0 The return values for an invalid comment or post ID 2426 * were changed to false instead of 0. 2425 2427 * 2426 2428 * @global wpdb $wpdb WordPress database abstraction object. … … 2440 2442 return new WP_Error( 'invalid_comment_id', __( 'Invalid comment ID.' ) ); 2441 2443 } else { 2442 return 0;2444 return false; 2443 2445 } 2444 2446 } … … 2449 2451 return new WP_Error( 'invalid_post_id', __( 'Invalid post ID.' ) ); 2450 2452 } else { 2451 return 0;2453 return false; 2452 2454 } 2453 2455 }
Note: See TracChangeset
for help on using the changeset viewer.