Changeset 48435 for trunk/src/wp-includes/feed.php
- Timestamp:
- 07/11/2020 12:12:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed.php
r48429 r48435 527 527 $mimes = get_allowed_mime_types(); 528 528 529 // Parse url529 // Parse URL. 530 530 if ( isset( $enclosure[0] ) && is_string( $enclosure[0] ) ) { 531 531 $url = trim( $enclosure[0] ); 532 532 } 533 533 534 // Parse length and type 535 for each ( range( 1, 2 ) as $i) {534 // Parse length and type. 535 for ( $i = 1; $i <= 2; $i++ ) { 536 536 if ( isset( $enclosure[ $i ] ) ) { 537 537 if ( is_numeric( $enclosure[ $i ] ) ) { 538 538 $length = trim( $enclosure[ $i ] ); 539 } elseif ( in_array( $enclosure[ $i ], $mimes ) ) {539 } elseif ( in_array( $enclosure[ $i ], $mimes, true ) ) { 540 540 $type = trim( $enclosure[ $i ] ); 541 541 } … … 549 549 esc_attr( $type ) 550 550 ); 551 551 552 /** 552 553 * Filters the atom enclosure HTML link tag for the current post.
Note: See TracChangeset
for help on using the changeset viewer.