Changeset 7379 for trunk/src/includes/common/locks.php
- Timestamp:
- 11/24/2025 07:23:06 PM (6 months ago)
- File:
-
- 1 edited
-
trunk/src/includes/common/locks.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/locks.php
r7378 r7379 24 24 25 25 // Bail if no post 26 if ( ! $post = get_post( $post_id ) ) { 26 $post = get_post( $post_id ); 27 if ( empty( $post ) ) { 27 28 return false; 28 29 } 29 30 30 31 // Bail if no lock 31 if ( ! $lock = get_post_meta( $post->ID, '_edit_lock', true ) ) { 32 $lock = get_post_meta( $post->ID, '_edit_lock', true ); 33 if ( empty( $lock ) ) { 32 34 return false; 33 35 } … … 63 65 64 66 // Bail if no post 65 if ( ! $post = get_post( $post_id ) ) { 67 $post = get_post( $post_id ); 68 if ( empty( $post ) ) { 66 69 return false; 67 70 } 68 71 69 72 // Bail if no user 70 if ( 0 === ( $user_id = get_current_user_id() ) ) { 73 $user_id = get_current_user_id(); 74 if ( empty( $user_id ) ) { 71 75 return false; 72 76 }
Note: See TracChangeset
for help on using the changeset viewer.