WordPress.org

Make WordPress Core

Ticket #7131: dashboard.diff

File dashboard.diff, 4.2 KB (added by Nicholas91, 5 years ago)

with correct &amp characters

  • opt/lampp/htdocs/wordpress/wp-admin/includes/dashboard.php

     
    3636                $update = true; 
    3737                $widget_options['dashboard_incoming_links'] = array( 
    3838                        'home' => get_option('home'), 
    39                         'link' => apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ), 
    40                         'url' => isset($widget_options['dashboard_incoming_links']['url']) ? apply_filters( 'dashboard_incoming_links_feed', $widget_options['dashboard_incoming_links']['url'] ) : apply_filters( 'dashboard_incoming_links_feed', 'http://blogsearch.google.com/blogsearch_feeds?hl=en&scoring=d&ie=utf-8&num=20&output=rss&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ), 
     39                        'link' => apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ), 
     40                        'url' => isset($widget_options['dashboard_incoming_links']['url']) ? apply_filters( 'dashboard_incoming_links_feed', $widget_options['dashboard_incoming_links']['url'] ) : apply_filters( 'dashboard_incoming_links_feed', 'http://blogsearch.google.com/blogsearch_feeds?hl=en&scoring=d&ie=utf-8&num=20&output=rss&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ), 
    4141                        'items' => isset($widget_options['dashboard_incoming_links']['items']) ? $widget_options['dashboard_incoming_links']['items'] : 10, 
    4242                        'show_date' => isset($widget_options['dashboard_incoming_links']['show_date']) ? $widget_options['dashboard_incoming_links']['show_date'] : false 
    4343                ); 
     
    512512        $comment_post_link = "<a href='$comment_post_url'>$comment_post_title</a>"; 
    513513        $comment_link = '<a class="comment-link" href="' . get_comment_link() . '">#</a>'; 
    514514 
    515         $delete_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); 
    516         $approve_url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "approve-comment_$comment->comment_ID" ) ); 
    517         $unapprove_url = clean_url( wp_nonce_url( "comment.php?action=unapprovecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "unapprove-comment_$comment->comment_ID" ) ); 
    518         $spam_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&dt=spam&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); 
     515        $delete_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&amp;p=$comment->comment_post_ID&amp;c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); 
     516        $approve_url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&amp;p=$comment->comment_post_ID&amp;c=$comment->comment_ID", "approve-comment_$comment->comment_ID" ) ); 
     517        $unapprove_url = clean_url( wp_nonce_url( "comment.php?action=unapprovecomment&amp;p=$comment->comment_post_ID&amp;c=$comment->comment_ID", "unapprove-comment_$comment->comment_ID" ) ); 
     518        $spam_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&amp;dt=spam&amp;p=$comment->comment_post_ID&amp;c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); 
    519519 
    520520        $actions = array(); 
    521521 
     
    639639                        $publisher = "<strong>$publisher</strong>"; 
    640640 
    641641                $content = $item->get_content(); 
    642                 $content = wp_html_excerpt($content, 50) . ' ...'; 
     642                $content = wp_html_excerpt($content, 50) . ' &hellip;'; 
    643643 
    644644                if ( $link ) 
    645645                        /* translators: incoming links feed, %1$s is other person, %3$s is content */ 
     
    802802 
    803803                $description = wp_specialchars( strip_tags(html_entity_decode($item->get_description(), ENT_QUOTES, get_option('blog_charset'))) ); 
    804804 
    805                 $ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . 
     805                $ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&amp;plugin=' . $slug, 'install-plugin_' . $slug) . 
    806806                                                        '&amp;TB_iframe=true&amp;width=600&amp;height=800'; 
    807807 
    808808                echo "<h4>$label</h4>\n";