Ticket #17364: 17364.patch
File 17364.patch, 4.1 KB (added by , 14 years ago) |
---|
-
wp-admin/custom-header.php
389 389 toggle_text(); 390 390 <?php } ?> 391 391 }); 392 /* ]]> */ 392 393 </script> 393 394 <?php 394 395 } -
wp-admin/custom-background.php
237 237 <input type="hidden" name="action" value="save" /> 238 238 <?php wp_nonce_field('custom-background-upload', '_wpnonce-custom-background-upload') ?> 239 239 <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?> 240 </p>241 240 </form> 242 241 </td> 243 242 </tr> -
wp-admin/includes/class-wp-terms-list-table.php
250 250 $pad = str_repeat( '— ', max( 0, $this->level ) ); 251 251 $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag ); 252 252 $qe_data = get_term( $tag->term_id, $taxonomy, OBJECT, 'edit' ); 253 $edit_link = get_edit_term_link( $tag->term_id, $taxonomy, $post_type);253 $edit_link = esc_url(get_edit_term_link( $tag->term_id, $taxonomy, $post_type )); 254 254 255 255 $out = '<strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $name ) ) . '">' . $name . '</a></strong><br />'; 256 256 … … 260 260 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __( 'Quick Edit' ) . '</a>'; 261 261 } 262 262 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) 263 $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";263 $actions['delete'] = "<a class='delete-tag' href='" . esc_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>"; 264 264 265 265 $actions = apply_filters( 'tag_row_actions', $actions, $tag ); 266 266 $actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag ); … … 269 269 $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; 270 270 $out .= '<div class="name">' . $qe_data->name . '</div>'; 271 271 $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>'; 272 $out .= '<div class="parent">' . $qe_data->parent . '</div></div> </td>';272 $out .= '<div class="parent">' . $qe_data->parent . '</div></div>'; 273 273 274 274 return $out; 275 275 } … … 300 300 301 301 $args['post_type'] = $post_type; 302 302 303 return "<a href='" . add_query_arg( $args, 'edit.php') . "'>$count</a>";303 return "<a href='" . esc_url(add_query_arg( $args, 'edit.php' )) . "'>$count</a>"; 304 304 } 305 305 306 306 function column_links( $tag ) { -
wp-admin/export.php
109 109 continue; 110 110 111 111 $month = zeroise( $date->month, 2 ); 112 echo '<option value="' . $date->year . '-' . $month . '" />' . $wp_locale->get_month( $month ) . ' ' . $date->year . '</option>';112 echo '<option value="' . $date->year . '-' . $month . '">' . $wp_locale->get_month( $month ) . ' ' . $date->year . '</option>'; 113 113 } 114 114 } 115 115 ?> -
wp-admin/options-writing.php
69 69 <?php foreach ( $post_formats[0] as $format ): ?> 70 70 <option<?php selected( get_option('default_post_format'), $format ); ?> value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option> 71 71 <?php endforeach; ?> 72 </select> </label>72 </select> 73 73 </td> 74 74 </tr> 75 75 <?php endif; endif; ?>