Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r47060 r47122  
    117117            if ( strpos( $bookmark->link_image, 'http' ) === 0 ) {
    118118                $output .= "<img src=\"$bookmark->link_image\" $alt $title />";
    119             } else { // If it's a relative path
     119            } else { // If it's a relative path.
    120120                $output .= '<img src="' . get_option( 'siteurl' ) . "$bookmark->link_image\" $alt $title />";
    121121            }
     
    148148        }
    149149        $output .= $parsed_args['after'] . "\n";
    150     } // end while
     150    } // End while.
    151151
    152152    return $output;
     
    255255
    256256    if ( $parsed_args['categorize'] ) {
    257         // Split the bookmarks into ul's for each category
     257        // Split the bookmarks into ul's for each category.
    258258        foreach ( (array) $cats as $cat ) {
    259259            $params    = array_merge( $parsed_args, array( 'category' => $cat->term_id ) );
     
    285285        }
    286286    } else {
    287         //output one single list using title_li for the title
     287        // Output one single list using title_li for the title.
    288288        $bookmarks = get_bookmarks( $parsed_args );
    289289
Note: See TracChangeset for help on using the changeset viewer.