Ticket #9402: more_more_validation_fixes.patch
File more_more_validation_fixes.patch, 5.8 KB (added by , 16 years ago) |
---|
-
includes/plugin-install.php
138 138 $tags = array(); 139 139 foreach ( (array)$api_tags as $tag ) 140 140 $tags[ $tag['name'] ] = (object) array( 141 'link' => clean_url( admin_url('plugin-install.php?tab=search& type=tag&s=' . urlencode($tag['name'])) ),141 'link' => clean_url( admin_url('plugin-install.php?tab=search&type=tag&s=' . urlencode($tag['name'])) ), 142 142 'name' => $tag['name'], 143 143 'id' => sanitize_title_with_dashes($tag['name']), 144 144 'count' => $tag['count'] ); -
includes/plugin.php
406 406 $checked[] = 'checked[]=' . $plugin; 407 407 408 408 ob_start(); 409 $url = wp_nonce_url('plugins.php?action=delete-selected& verify-delete=1&' . implode('&', $checked), 'bulk-manage-plugins');409 $url = wp_nonce_url('plugins.php?action=delete-selected&verify-delete=1&' . implode('&', $checked), 'bulk-manage-plugins'); 410 410 if ( false === ($credentials = request_filesystem_credentials($url)) ) { 411 411 $data = ob_get_contents(); 412 412 ob_end_clean(); -
includes/post.php
800 800 801 801 $post_status_q = ''; 802 802 if ( isset($q['post_status']) && in_array( $q['post_status'], array_keys($post_stati) ) ) { 803 $post_status_q = '& post_status=' . $q['post_status'];804 $post_status_q .= '& perm=readable';803 $post_status_q = '&post_status=' . $q['post_status']; 804 $post_status_q .= '&perm=readable'; 805 805 } 806 806 807 807 if ( isset($q['post_status']) && 'pending' === $q['post_status'] ) { … … 820 820 $posts_per_page = 15; 821 821 $posts_per_page = apply_filters('edit_posts_per_page', $posts_per_page); 822 822 823 wp("post_type=post& what_to_show=posts$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby");823 wp("post_type=post&what_to_show=posts$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby"); 824 824 825 825 return array($post_stati, $avail_post_stati); 826 826 } … … 1354 1354 1355 1355 <?php 1356 1356 if ( $concatenate_scripts ) 1357 echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip& ver=$ver'></script>\n";1357 echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&ver=$ver'></script>\n"; 1358 1358 else 1359 1359 echo "<script type='text/javascript' src='$baseurl/tiny_mce.js?ver=$ver'></script>\n"; 1360 1360 -
includes/template.php
501 501 $args['popular_cats'] = get_terms( 'category', array( 'fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false ) ); 502 502 503 503 if ( $descendants_and_self ) { 504 $categories = get_categories( "child_of=$descendants_and_self& hierarchical=0&hide_empty=0" );504 $categories = get_categories( "child_of=$descendants_and_self&hierarchical=0&hide_empty=0" ); 505 505 $self = get_category( $descendants_and_self ); 506 506 array_unshift( $categories, $self ); 507 507 } else { … … 598 598 $checked_categories[] = $default; 599 599 } 600 600 601 $categories = get_terms('link_category', 'orderby=count& hide_empty=0');601 $categories = get_terms('link_category', 'orderby=count&hide_empty=0'); 602 602 603 603 if ( empty($categories) ) 604 604 return; … … 2060 2060 else 2061 2061 $ptime = mysql2date(__('Y/m/d \a\t g:i A'), $comment->comment_date ); 2062 2062 2063 $delete_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment& p=$post->ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) );2064 $approve_url = clean_url( wp_nonce_url( "comment.php?action=approvecomment& p=$post->ID&c=$comment->comment_ID", "approve-comment_$comment->comment_ID" ) );2065 $unapprove_url = clean_url( wp_nonce_url( "comment.php?action=unapprovecomment& p=$post->ID&c=$comment->comment_ID", "unapprove-comment_$comment->comment_ID" ) );2066 $spam_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment& dt=spam&p=$post->ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) );2063 $delete_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&p=$post->ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); 2064 $approve_url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&p=$post->ID&c=$comment->comment_ID", "approve-comment_$comment->comment_ID" ) ); 2065 $unapprove_url = clean_url( wp_nonce_url( "comment.php?action=unapprovecomment&p=$post->ID&c=$comment->comment_ID", "unapprove-comment_$comment->comment_ID" ) ); 2066 $spam_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&dt=spam&p=$post->ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); 2067 2067 2068 2068 echo "<tr id='comment-$comment->comment_ID' class='$the_comment_status'>"; 2069 2069 $columns = get_column_headers('edit-comments'); -
includes/theme-install.php
154 154 $tags = array(); 155 155 foreach ( (array)$api_tags as $tag ) { 156 156 $tags[ $tag['name'] ] = (object) array( 157 'link' => clean_url( admin_url('theme-install.php?tab=search& type=tag&s=' . urlencode($tag['name'])) ),157 'link' => clean_url( admin_url('theme-install.php?tab=search&type=tag&s=' . urlencode($tag['name'])) ), 158 158 'name' => $tag['name'], 159 159 'id' => sanitize_title_with_dashes($tag['name']), 160 160 'count' => $tag['count'] );