Make WordPress Core


Ignore:
Timestamp:
07/10/2023 10:36:06 PM (2 years ago)
Author:
audrasjb
Message:

Docs: Replace multiple single line comments with multi-line comments.

This changeset updates various comments as per WordPress PHP Inline Documentation Standards.
See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments.

Follow-up to [56174], [56175], [56176], [56177], [56178], [56179], [56180].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

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

    r56053 r56191  
    250250                }
    251251            }
    252             // Show default category in permalinks,
    253             // without having to assign it explicitly.
     252            /*
     253             * Show default category in permalinks,
     254             * without having to assign it explicitly.
     255             */
    254256            if ( empty( $category ) ) {
    255257                $default_category = get_term( get_option( 'default_category' ), 'category' );
     
    266268        }
    267269
    268         // This is not an API call because the permalink is based on the stored post_date value,
    269         // which should be parsed as local time regardless of the default PHP timezone.
     270        /*
     271         * This is not an API call because the permalink is based on the stored post_date value,
     272         * which should be parsed as local time regardless of the default PHP timezone.
     273         */
    270274        $date = explode( ' ', str_replace( array( '-', ':' ), ' ', $post->post_date ) );
    271275
Note: See TracChangeset for help on using the changeset viewer.