From f81a980a70323d924e6f37cc8afd363c7a0ab677 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 1 Oct 2010 18:34:25 +0000 Subject: [PATCH] Eliminate admin_notice_feed(). Props technosailor. fixes #14587 git-svn-id: https://develop.svn.wordpress.org/trunk@15679 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/ms.php | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index 940adfc320..742a3cabc5 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -589,37 +589,6 @@ function secret_salt_warning() { } add_action( 'admin_notices', 'secret_salt_warning' ); -function admin_notice_feed() { - global $current_screen; - if ( $current_screen->id != 'dashboard' ) - return; - - if ( !empty( $_GET['feed_dismiss'] ) ) { - update_user_option( get_current_user_id(), 'admin_feed_dismiss', $_GET['feed_dismiss'], true ); - return; - } - - $url = get_site_option( 'admin_notice_feed' ); - if ( empty( $url ) ) - return; - - $rss = fetch_feed( $url ); - if ( ! is_wp_error( $rss ) && $item = $rss->get_item() ) { - $title = $item->get_title(); - if ( md5( $title ) == get_user_option( 'admin_feed_dismiss' ) ) - return; - $msg = "

" . esc_html( $title ) . "

\n"; - $content = $item->get_description(); - $content = $content ? wp_html_excerpt( $content, 200 ) . ' … ' : ''; - $link = esc_url( strip_tags( $item->get_link() ) ); - $msg .= "

" . $content . "" . __( 'Read More' ) . " " . __( 'Dismiss' ) . "

"; - echo "
$msg
"; - } elseif ( is_super_admin() ) { - printf( '
' . __( 'Your feed at %s is empty.' ) . '
', esc_html( $url ) ); - } -} -add_action( 'admin_notices', 'admin_notice_feed' ); - function site_admin_notice() { global $wp_db_version; if ( !is_super_admin() )