Make WordPress Core


Ignore:
Timestamp:
08/22/2024 11:45:49 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct inline comment formatting in redirect_canonical().

Follow-up to [57357].

See #61608.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/canonical.php

    r57645 r58924  
    554554                $attachment_post      = get_post( $attachment_id );
    555555                $attachment_parent_id = $attachment_post ? $attachment_post->post_parent : 0;
    556 
    557                 $attachment_url = wp_get_attachment_url( $attachment_id );
     556                $attachment_url       = wp_get_attachment_url( $attachment_id );
     557
    558558                if ( $attachment_url !== $redirect_url ) {
    559559                        /*
    560                         * If an attachment is attached to a post, it inherits the parent post's status. Fetch the
    561                         * parent post to check its status later.
    562                         */
     560                         * If an attachment is attached to a post, it inherits the parent post's status.
     561                         * Fetch the parent post to check its status later.
     562                         */
    563563                        if ( $attachment_parent_id ) {
    564564                                $redirect_obj = get_post( $attachment_parent_id );
    565565                        }
     566
    566567                        $redirect_url = $attachment_url;
    567568                }
Note: See TracChangeset for help on using the changeset viewer.