Make WordPress Core


Ignore:
Timestamp:
11/17/2023 01:27:23 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve some DocBlocks and inline comments per the documentation standards.

Follow-up to [56834], [56836], [56837], [56838].

Props kebbet, costdev, mukesh27, SergeyBiryukov.
See #59651.

File:
1 edited

Legend:

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

    r57053 r57120  
    26372637        $post_parent = get_post( $post_parent_id );
    26382638
    2639         // terminate the shortcode execution if user cannot read the post or password-protected
    2640         if (
    2641         ( ! is_post_publicly_viewable( $post_parent->ID ) && ! current_user_can( 'read_post', $post_parent->ID ) )
    2642         || post_password_required( $post_parent ) ) {
     2639        // Terminate the shortcode execution if the user cannot read the post or it is password-protected.
     2640        if ( ! is_post_publicly_viewable( $post_parent->ID ) && ! current_user_can( 'read_post', $post_parent->ID )
     2641            || post_password_required( $post_parent )
     2642        ) {
    26432643            return '';
    26442644        }
     
    29802980        $post_parent = get_post( $id );
    29812981
    2982         // terminate the shortcode execution if user cannot read the post or password-protected
     2982        // Terminate the shortcode execution if the user cannot read the post or it is password-protected.
    29832983        if ( ! current_user_can( 'read_post', $post_parent->ID ) || post_password_required( $post_parent ) ) {
    29842984            return '';
Note: See TracChangeset for help on using the changeset viewer.