Ticket #22429: 22429.diff
File 22429.diff, 2.8 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/ajax-actions.php
241 241 * @return die 242 242 */ 243 243 function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { 244 $total = (int) @$_POST['_total']; 245 $per_page = (int) @$_POST['_per_page']; 246 $page = (int) @$_POST['_page']; 247 $url = esc_url_raw( @$_POST['_url'] ); 244 $total = isset( $_POST['_total'] ) ? (int) $_POST['_total'] : 0; 245 $per_page = isset( $_POST['_per_page'] ) ? (int) $_POST['_per_page'] : 0; 246 $page = isset( $_POST['_page'] ) ? (int) $_POST['_page'] : 0; 247 $url = isset( $_POST['_url'] ) ? esc_url_raw( $_POST['_url'] ) : ''; 248 248 249 // JS didn't send us everything we need to know. Just die with success message 249 250 if ( !$total || !$per_page || !$page || !$url ) 250 251 wp_die( time() ); -
wp-admin/includes/media.php
2077 2077 $arc_result = $wpdb->get_results( $arc_query ); 2078 2078 2079 2079 $month_count = count($arc_result); 2080 $selected_month = isset( $_GET['m'] ) ? $_GET['m'] : 0; 2080 2081 2081 2082 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { ?> 2082 2083 <select name='m'> 2083 <option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>2084 <option<?php selected( $selected_month, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option> 2084 2085 <?php 2085 2086 foreach ($arc_result as $arc_row) { 2086 2087 if ( $arc_row->yyear == 0 ) 2087 2088 continue; 2088 2089 $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 ); 2089 2090 2090 if ( isset($_GET['m']) && ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] ))2091 if ( $arc_row->yyear . $arc_row->mmonth == $selected_month ) 2091 2092 $default = ' selected="selected"'; 2092 2093 else 2093 2094 $default = ''; -
wp-includes/theme.php
647 647 ) 648 648 return $matches[1] . "#$matches[2] onclick=$matches[2]return false;" . $matches[4]; 649 649 650 $link = add_query_arg( array( 'preview' => 1, 'template' => $_GET['template'], 'stylesheet' => @$_GET['stylesheet'], 'preview_iframe' => 1 ), $matches[3] ); 650 $stylesheet = isset( $_GET['stylesheet'] ) ? $_GET['stylesheet'] : ''; 651 $template = isset( $_GET['template'] ) ? $_GET['template'] : ''; 652 653 $link = add_query_arg( array( 'preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'preview_iframe' => 1 ), $matches[3] ); 651 654 if ( 0 === strpos($link, 'preview=1') ) 652 655 $link = "?$link"; 653 656 return $matches[1] . esc_attr( $link ) . $matches[4];