Changeset 47051 for trunk/src/wp-includes/blocks/rss.php
- Timestamp:
- 01/08/2020 11:55:03 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/rss.php
r46586 r47051 21 21 22 22 if ( ! $rss->get_item_quantity() ) { 23 // PHP 5.2 compatibility. See: http://simplepie.org/wiki/faq/i_m_getting_memory_leaks.24 $rss->__destruct();25 unset( $rss );26 27 23 return '<div class="components-placeholder"><div class="notice notice-error">' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) . '</div></div>'; 28 24 } … … 97 93 } 98 94 99 $list_items_markup = "<ul class='{$class}'>{$list_items}</ul>"; 100 101 // PHP 5.2 compatibility. See: http://simplepie.org/wiki/faq/i_m_getting_memory_leaks. 102 $rss->__destruct(); 103 unset( $rss ); 104 105 return $list_items_markup; 95 return "<ul class='{$class}'>{$list_items}</ul>"; 106 96 } 107 97
Note: See TracChangeset
for help on using the changeset viewer.