← All changes
|
vendor/codeinwp/themeisle-sdk/src/Modules/Dashboard_widget.php
+1
-4
3.10.3
→
3.9.2
View file →
| @@ -80,10 +80,8 @@ | ||
| 80 | 80 | $this->feeds = apply_filters( |
| 81 | 81 | 'themeisle_sdk_dashboard_widget_feeds', |
| 82 | 82 | [ |
| 83 | 83 | 'https://themeisle.com/blog/feed', |
| 84 | - 'https://www.codeinwp.com/blog/feed', | |
| 85 | - 'https://wpshout.com/feed', | |
| 86 | 84 | ] |
| 87 | 85 | ); |
| 88 | 86 | add_action( 'wp_dashboard_setup', array( &$this, 'add_widget' ) ); |
| 89 | 87 | add_action( 'wp_network_dashboard_setup', array( &$this, 'add_widget' ) ); |
| @@ -320,10 +318,9 @@ | ||
| 320 | 318 | return; |
| 321 | 319 | } |
| 322 | 320 | |
| 323 | 321 | $items = $feed->get_items( 0, 5 ); |
| 324 | - $items = is_array( $items ) ? $items : []; | |
| 325 | - foreach ( $items as $item ) { | |
| 322 | + foreach ( (array) $items as $item ) { | |
| 326 | 323 | $items_normalized[] = array( |
| 327 | 324 | 'title' => $item->get_title(), |
| 328 | 325 | 'date' => $item->get_date( 'U' ), |
| 329 | 326 | 'link' => $item->get_permalink(), |