Changeset 40424
- Timestamp:
- 04/13/2017 11:08:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r40423 r40424 1451 1451 * @param int $post_id ID of the post to check for editing. 1452 1452 * @return int|false ID of the user with lock. False if the post does not exist, post is not locked, 1453 * orpost is locked by current user.1453 * the user with lock does not exist, or the post is locked by current user. 1454 1454 */ 1455 1455 function wp_check_post_lock( $post_id ) { … … 1466 1466 $user = isset( $lock[1] ) ? $lock[1] : get_post_meta( $post->ID, '_edit_last', true ); 1467 1467 1468 if ( ! get_userdata( $user ) ) { 1469 return false; 1470 } 1471 1468 1472 /** This filter is documented in wp-admin/includes/ajax-actions.php */ 1469 1473 $time_window = apply_filters( 'wp_check_post_lock_window', 150 ); … … 1482 1486 * 1483 1487 * @param int $post_id ID of the post being edited. 1484 * @return array|false Array of the lock time and user ID. False if the post does not exist or there1485 * is no current user.1488 * @return array|false Array of the lock time and user ID. False if the post does not exist, or 1489 * there is no current user. 1486 1490 */ 1487 1491 function wp_set_post_lock( $post_id ) {
Note: See TracChangeset
for help on using the changeset viewer.