Changeset 11204 for trunk/wp-admin/upload.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload.php
r11190 r11204 212 212 <label class="invisible" for="media-search-input"><?php _e( 'Search Media' ); ?>:</label> 213 213 <input type="text" id="media-search-input" name="s" value="<?php the_search_query(); ?>" /> 214 <input type="submit" value="<?php _ea( 'Search Media' ); ?>" class="button" />214 <input type="submit" value="<?php esc_attr_e( 'Search Media' ); ?>" class="button" /> 215 215 </p> 216 216 </form> … … 248 248 <?php } ?> 249 249 </select> 250 <input type="submit" value="<?php _ea('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />250 <input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> 251 251 <?php wp_nonce_field('bulk-media'); ?> 252 252 … … 273 273 $default = ''; 274 274 275 echo "<option$default value='" . attr("$arc_row->yyear$arc_row->mmonth") . "'>";275 echo "<option$default value='" . esc_attr("$arc_row->yyear$arc_row->mmonth") . "'>"; 276 276 echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear"; 277 277 echo "</option>\n"; … … 281 281 <?php endif; // month_count ?> 282 282 283 <input type="submit" id="post-query-submit" value="<?php _ea('Filter'); ?>" class="button-secondary" />283 <input type="submit" id="post-query-submit" value="<?php esc_attr_e('Filter'); ?>" class="button-secondary" /> 284 284 285 285 <?php } // ! is_singular ?> 286 286 287 287 <?php if ( isset($_GET['detached']) ) { ?> 288 <input type="submit" id="find_detached" name="find_detached" value="<?php _ea('Scan for lost attachments'); ?>" class="button-secondary" />288 <input type="submit" id="find_detached" name="find_detached" value="<?php esc_attr_e('Scan for lost attachments'); ?>" class="button-secondary" /> 289 289 <?php } ?> 290 290 … … 326 326 ?> 327 327 <tr id='post-<?php echo $post->ID; ?>' class='<?php echo $class; ?>' valign="top"> 328 <th scope="row" class="check-column"><input type="checkbox" name="media[]" value="<?php echo attr($post->ID); ?>" /></th>328 <th scope="row" class="check-column"><input type="checkbox" name="media[]" value="<?php echo esc_attr($post->ID); ?>" /></th> 329 329 330 330 <td class="media-icon"><?php 331 331 if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) { ?> 332 <a href="media.php?action=edit&attachment_id=<?php echo $post->ID; ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $thumb; ?></a>332 <a href="media.php?action=edit&attachment_id=<?php echo $post->ID; ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $thumb; ?></a> 333 333 <?php } ?></td> 334 334 335 <td class="media column-media"><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />335 <td class="media column-media"><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br /> 336 336 <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 337 337 … … 343 343 if ( current_user_can('delete_post', $post->ID) ) 344 344 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>"; 345 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';345 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 346 346 if ( current_user_can('edit_post', $post->ID) ) 347 347 $actions['attach'] = '<a href="#the-list" onclick="findPosts.open(\'media[]\',\''.$post->ID.'\');return false;">'.__('Attach').'</a>'; … … 404 404 <?php } ?> 405 405 </select> 406 <input type="submit" value="<?php _ea('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />406 <input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" /> 407 407 </div> 408 408
Note: See TracChangeset
for help on using the changeset viewer.