Ticket #9402: more_validation_fixes.patch
File more_validation_fixes.patch, 5.6 KB (added by , 15 years ago) |
---|
-
import/blogger.php
245 245 kick: function() { 246 246 ++this.kicks; 247 247 var i = this.blog; 248 jQuery.post('admin.php?import=blogger& noheader=true',{blog:this.blog},function(text,result){blogs[i].kickd(text,result)});248 jQuery.post('admin.php?import=blogger&noheader=true',{blog:this.blog},function(text,result){blogs[i].kickd(text,result)}); 249 249 }, 250 250 check: function() { 251 251 ++this.checks; 252 252 var i = this.blog; 253 jQuery.post('admin.php?import=blogger& noheader=true&status=true',{blog:this.blog},function(text,result){blogs[i].checkd(text,result)});253 jQuery.post('admin.php?import=blogger&noheader=true&status=true',{blog:this.blog},function(text,result){blogs[i].checkd(text,result)}); 254 254 }, 255 255 kickd: function(text, result) { 256 256 if ( result == 'error' ) { … … 305 305 jQuery('div.wrap').gt(0).remove(); 306 306 jQuery('div.wrap').empty().append('<h2>$authhead</h2><h3>' + this.title + '</h3>'); 307 307 jQuery('div.wrap').append('<p id=\"auth\">$loadauth</p>'); 308 jQuery('p#auth').load('index.php?import=blogger& noheader=true&authors=1',{blog:this.blog});308 jQuery('p#auth').load('index.php?import=blogger&noheader=true&authors=1',{blog:this.blog}); 309 309 }, 310 310 init: function() { 311 311 this.update(); … … 330 330 jQuery(this.button).attr('value', strings.cont); 331 331 } 332 332 } else if ( this.mode == 'authors' ) { 333 document.location = 'index.php?import=blogger&a uthors=1&blog='+this.blog;333 document.location = 'index.php?import=blogger&authors=1&blog='+this.blog; 334 334 //this.mode = 'authors2'; 335 335 //this.getauthors(); 336 336 } -
includes/dashboard.php
36 36 $update = true; 37 37 $widget_options['dashboard_incoming_links'] = array( 38 38 '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') ) ), 41 41 'items' => isset($widget_options['dashboard_incoming_links']['items']) ? $widget_options['dashboard_incoming_links']['items'] : 10, 42 42 'show_date' => isset($widget_options['dashboard_incoming_links']['show_date']) ? $widget_options['dashboard_incoming_links']['show_date'] : false 43 43 ); … … 512 512 $comment_post_link = "<a href='$comment_post_url'>$comment_post_title</a>"; 513 513 $comment_link = '<a class="comment-link" href="' . get_comment_link() . '">#</a>'; 514 514 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&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" ) ); 519 519 520 520 $actions = array(); 521 521 … … 802 802 803 803 $description = wp_specialchars( strip_tags(html_entity_decode($item->get_description(), ENT_QUOTES, get_option('blog_charset'))) ); 804 804 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&plugin=' . $slug, 'install-plugin_' . $slug) . 806 806 '&TB_iframe=true&width=600&height=800'; 807 807 808 808 echo "<h4>$label</h4>\n";