Changeset 25404
- Timestamp:
- 09/12/2013 05:30:01 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r25340 r25404 2418 2418 } elseif ( 'post' == $context ) { 2419 2419 $post = get_post( $id ); 2420 $post_id = $post->ID; 2420 if ( ! empty( $post->ID ) ) 2421 $post_id = $post->ID; 2421 2422 } 2422 2423 -
trunk/tests/phpunit/tests/link.php
r25030 r25404 35 35 // Basic case 36 36 $this->assertEquals( get_permalink( $post_id ), wp_get_shortlink( $post_id, 'post' ) ); 37 38 unset( $GLOBALS['post'] ); 37 39 38 40 // Global post is not set
Note: See TracChangeset
for help on using the changeset viewer.