Changeset 28844 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 06/26/2014 02:04:38 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r28760 r28844 24 24 * @uses $post 25 25 * 26 * @return int 26 * @return int|bool The ID of the current item in the WordPress Loop. False if $post is not set. 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
Note: See TracChangeset
for help on using the changeset viewer.