Changeset 47198 for trunk/src/wp-includes/blocks/rss.php
- Timestamp:
- 02/06/2020 06:31:22 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/rss.php
r47051 r47198 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 23 27 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>'; 24 28 } … … 93 97 } 94 98 95 return "<ul class='{$class}'>{$list_items}</ul>"; 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; 96 106 } 97 107
Note: See TracChangeset
for help on using the changeset viewer.