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

    r47060 r47122  
    476476                $enclosure = explode( "\n", $enc );
    477477
    478                 // only get the first element, e.g. audio/mpeg from 'audio/mpeg mpga mp2 mp3'
     478                // Only get the first element, e.g. 'audio/mpeg' from 'audio/mpeg mpga mp2 mp3'.
    479479                $t    = preg_split( '/[ \t]/', trim( $enclosure[2] ) );
    480480                $type = $t[0];
     
    764764    $feed->set_sanitize_class( 'WP_SimplePie_Sanitize_KSES' );
    765765    // We must manually overwrite $feed->sanitize because SimplePie's
    766     // constructor sets it before we have a chance to set the sanitization class
     766    // constructor sets it before we have a chance to set the sanitization class.
    767767    $feed->sanitize = new WP_SimplePie_Sanitize_KSES();
    768768
Note: See TracChangeset for help on using the changeset viewer.