Ticket #17034: 28572.diff
| File 28572.diff, 456 bytes (added by , 11 years ago) |
|---|
-
wp-includes/post-template.php
23 23 * @since 2.1.0 24 24 * @uses $post 25 25 * 26 * @return int 26 * @return int the ID of the current item 27 27 */ 28 28 function get_the_ID() { 29 return get_post()->ID; 29 $post = get_post(); 30 return !empty ( $post ) ? $post->ID : false ; 30 31 } 31 32 32 33 /**