Changeset 28880
- Timestamp:
- 06/28/2014 04:00:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r28844 r28880 28 28 function get_the_ID() { 29 29 $post = get_post(); 30 return ! empty 30 return ! empty( $post ) ? $post->ID : false; 31 31 } 32 32 … … 342 342 343 343 $post = get_post(); 344 if ( empty( $post ) ) { 345 return ''; 346 } 344 347 345 348 if ( post_password_required() ) {
Note: See TracChangeset
for help on using the changeset viewer.