Changeset 11204 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r11158 r11204 427 427 'what' => 'link-category', 428 428 'id' => $cat_id, 429 'data' => "<li id='link-category-$cat_id'><label for='in-link-category-$cat_id' class='selectit'><input value='" . attr($cat_id) . "' type='checkbox' checked='checked' name='link_category[]' id='in-link-category-$cat_id'/> $cat_name</label></li>",429 'data' => "<li id='link-category-$cat_id'><label for='in-link-category-$cat_id' class='selectit'><input value='" . esc_attr($cat_id) . "' type='checkbox' checked='checked' name='link_category[]' id='in-link-category-$cat_id'/> $cat_name</label></li>", 430 430 'position' => -1 431 431 ) ); … … 475 475 $level++; 476 476 } 477 $cat_full_name = attr($cat_full_name);477 $cat_full_name = esc_attr($cat_full_name); 478 478 479 479 $x = new WP_Ajax_Response( array( … … 553 553 554 554 $tag_full_name = $tag->name; 555 $tag_full_name = attr($tag_full_name);555 $tag_full_name = esc_attr($tag_full_name); 556 556 557 557 $x = new WP_Ajax_Response( array( … … 1215 1215 } 1216 1216 1217 $html .= '<tr class="found-posts"><td class="found-radio"><input type="radio" id="found-'.$post->ID.'" name="found_post_id" value="' . attr($post->ID) . '"></td>';1217 $html .= '<tr class="found-posts"><td class="found-radio"><input type="radio" id="found-'.$post->ID.'" name="found_post_id" value="' . esc_attr($post->ID) . '"></td>'; 1218 1218 $html .= '<td><label for="found-'.$post->ID.'">'.wp_specialchars($post->post_title, true).'</label></td><td>'.wp_specialchars($time, true).'</td><td>'.wp_specialchars($stat, true).'</td></tr>'."\n\n"; 1219 1219 }
Note: See TracChangeset
for help on using the changeset viewer.