Ticket #59866: 59866.diff
| File 59866.diff, 843 bytes (added by , 3 years ago) |
|---|
-
src/wp-includes/canonical.php
548 548 $is_attachment_redirect = false; 549 549 550 550 if ( is_attachment() && ! get_option( 'wp_attachment_pages_enabled' ) ) { 551 $attachment_id = get_query_var( 'attachment_id' ); 551 $attachment_id = get_query_var( 'attachment_id' ); 552 $attachment_post = get_post( $attachment_id ); 553 $attachment_parent_id = $attachment_post ? $attachment_post->post_parent : 0; 552 554 553 if ( current_user_can( 'read_post', $attachment_id ) ) {555 if ( $attachment_parent_id && current_user_can( 'read_post', $attachment_parent_id ) ) { 554 556 $redirect_url = wp_get_attachment_url( $attachment_id ); 555 557 556 558 $is_attachment_redirect = true;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)