set_timeout(5); $news_rss->set_feed_url('http://feeds.feedburner.com/AlexandruCosmin'); $news_rss->strip_htmltags(array_merge($news_rss->strip_htmltags, array('h1', 'a', 'img'))); $news_rss->enable_cache(false); $news_rss->init(); $news = $news_rss->get_items(0, 4); $news_cached = array(); foreach ($news as $article) { $news_cached[] = array( 'url' => $article->get_permalink(), 'title' => $article->get_title(), 'date' => $article->get_date("d M Y"), 'dc' => $article->get_date("Y") ); } $news = $news_cached; set_transient('ac_dashboard_widget_news', $news_cached, 60 * 60 * 24); } ?>
set_timeout(5); $latest_rss->set_feed_url('http://feeds.feedburner.com/acosminlatest'); $latest_rss->strip_htmltags(array_merge($latest_rss->strip_htmltags, array('h1', 'a', 'img'))); $latest_rss->enable_cache(false); $latest_rss->init(); $latest = $latest_rss->get_items(0, 4); $latest_cached = array(); foreach ($latest as $theme) { $latest_cached[] = array( 'url' => $theme->get_permalink(), 'title' => $theme->get_title(), 'dc' => $theme->get_date("Y") ); } $latest = $latest_cached; set_transient('ac_dashboard_widget_latest', $latest_cached, 60 * 60 * 24); } ?>

$normal_dashboard['ac_dashboard_widget']); unset($normal_dashboard['ac_dashboard_widget']); $sorted_dashboard = array_merge($ac_dashboard_widget_backup, $normal_dashboard); $wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard; } // ac_widget_add() END add_action( 'wp_dashboard_setup', 'ac_widget_add' ); } // if clause - disable ?>