Changeset 7250 for trunk/wp-includes/link-template.php
- Timestamp:
- 03/11/2008 09:08:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r7204 r7250 442 442 $post = &get_post( $id ); 443 443 444 if ( $post->post_type == 'attachment' ) { 445 return; 446 } elseif ( $post->post_type == 'page' ) { 444 if ( $post->post_type == 'page' ) { 447 445 if ( !current_user_can( 'edit_page', $post->ID ) ) 448 446 return; … … 462 460 global $post; 463 461 464 if ( $post->post_type == 'attachment' ) { 465 return; 466 } elseif ( $post->post_type == 'page' ) { 462 if ( $post->post_type == 'page' ) { 467 463 if ( !current_user_can( 'edit_page', $post->ID ) ) 468 464 return; … … 484 480 $post = &get_post( $comment->comment_post_ID ); 485 481 486 if ( $post->post_type == 'attachment' ) { 487 return; 488 } elseif ( $post->post_type == 'page' ) { 482 if ( $post->post_type == 'page' ) { 489 483 if ( !current_user_can( 'edit_page', $post->ID ) ) 490 484 return; … … 502 496 503 497 if ( $post->post_type == 'attachment' ) { 504 return;505 498 } elseif ( $post->post_type == 'page' ) { 506 499 if ( !current_user_can( 'edit_page', $post->ID ) )
Note: See TracChangeset
for help on using the changeset viewer.