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/functions.php

    r56115 r56191  
    37983798        $dir_attr       = "dir='$text_direction'";
    37993799
    3800         // If `text_direction` was not explicitly passed,
    3801         // use get_language_attributes() if available.
     3800        /*
     3801         * If `text_direction` was not explicitly passed,
     3802         * use get_language_attributes() if available.
     3803         */
    38023804        if ( empty( $args['text_direction'] )
    38033805            && function_exists( 'language_attributes' ) && function_exists( 'is_rtl' )
     
    50865088 */
    50875089function _wp_to_kebab_case( $input_string ) {
    5088     //phpcs:disable WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
    5089     // ignore the camelCase names for variables so the names are the same as lodash
    5090     // so comparing and porting new changes is easier.
     5090    // Ignore the camelCase names for variables so the names are the same as lodash so comparing and porting new changes is easier.
     5091    // phpcs:disable WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
    50915092
    50925093    /*
     
    68986899    $return          = array();
    68996900
    6900     // Set evanescent_hare to one past hare.
    6901     // Increment hare two steps.
     6901    // Set evanescent_hare to one past hare. Increment hare two steps.
    69026902    while (
    69036903        $tortoise
     
    83508350function get_dirsize( $directory, $max_execution_time = null ) {
    83518351
    8352     // Exclude individual site directories from the total when checking the main site of a network,
    8353     // as they are subdirectories and should not be counted.
     8352    /*
     8353     * Exclude individual site directories from the total when checking the main site of a network,
     8354     * as they are subdirectories and should not be counted.
     8355     */
    83548356    if ( is_multisite() && is_main_site() ) {
    83558357        $size = recurse_dirsize( $directory, $directory . '/sites', $max_execution_time );
Note: See TracChangeset for help on using the changeset viewer.