Changeset 11204 for trunk/wp-admin/press-this.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r11203 r11204 136 136 <div class="titlediv"> 137 137 <div class="titlewrap"> 138 <input id="this_photo_description" name="photo_description" class="tbtitle text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo attr($title);?>"/>139 </div> 140 </div> 141 142 <p class="centered"><input type="hidden" name="this_photo" value="<?php echo attr($image); ?>" id="this_photo" />143 <a href="#" class="select"><img src="<?php echo clean_url($image); ?>" alt="<?php echo attr(__('Click to insert.')); ?>" title="<?php echoattr(__('Click to insert.')); ?>" /></a></p>138 <input id="this_photo_description" name="photo_description" class="tbtitle text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo esc_attr($title);?>"/> 139 </div> 140 </div> 141 142 <p class="centered"><input type="hidden" name="this_photo" value="<?php echo esc_attr($image); ?>" id="this_photo" /> 143 <a href="#" class="select"><img src="<?php echo clean_url($image); ?>" alt="<?php echo esc_attr(__('Click to insert.')); ?>" title="<?php echo esc_attr(__('Click to insert.')); ?>" /></a></p> 144 144 145 145 <p id="options"><a href="#" class="select button"><?php _e('Insert Image'); ?></a> <a href="#" class="cancel button"><?php _e('Cancel'); ?></a></p> … … 169 169 <div id="titlediv"> 170 170 <div class="titlewrap"> 171 <input id="this_photo_description" name="photo_description" class="tbtitle text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo attr($title);?>"/>171 <input id="this_photo_description" name="photo_description" class="tbtitle text" onkeypress="if(event.keyCode==13) image_selector();" value="<?php echo esc_attr($title);?>"/> 172 172 </div> 173 173 </div> … … 378 378 switch(tab_name) { 379 379 case 'video' : 380 jQuery('#extra_fields').load('<?php echo clean_url($_SERVER['PHP_SELF']); ?>', { ajax: 'video', s: '<?php echo attr($selection); ?>'}, function() {380 jQuery('#extra_fields').load('<?php echo clean_url($_SERVER['PHP_SELF']); ?>', { ajax: 'video', s: '<?php echo esc_attr($selection); ?>'}, function() { 381 381 <?php 382 382 $content = ''; 383 383 if ( preg_match("/youtube\.com\/watch/i", $url) ) { 384 384 list($domain, $video_id) = split("v=", $url); 385 $video_id = attr($video_id);385 $video_id = esc_attr($video_id); 386 386 $content = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' . $video_id . '"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $video_id . '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>'; 387 387 388 388 } elseif ( preg_match("/vimeo\.com\/[0-9]+/i", $url) ) { 389 389 list($domain, $video_id) = split(".com/", $url); 390 $video_id = attr($video_id);390 $video_id = esc_attr($video_id); 391 391 $content = '<object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=' . $video_id . '&server=www.vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /> <embed src="http://www.vimeo.com/moogaloop.swf?clip_id=' . $video_id . '&server=www.vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object>'; 392 392 … … 458 458 <div class="inside"> 459 459 <p> 460 <input class="button" type="submit" name="draft" value="<?php _ea('Save Draft') ?>" id="save" />460 <input class="button" type="submit" name="draft" value="<?php esc_attr_e('Save Draft') ?>" id="save" /> 461 461 <?php if ( current_user_can('publish_posts') ) { ?> 462 <input class="button-primary" type="submit" name="publish" value="<?php _ea('Publish') ?>" id="publish" />462 <input class="button-primary" type="submit" name="publish" value="<?php esc_attr_e('Publish') ?>" id="publish" /> 463 463 <?php } else { ?> 464 <br /><br /><input class="button-primary" type="submit" name="review" value="<?php _ea('Submit for Review') ?>" id="review" />464 <br /><br /><input class="button-primary" type="submit" name="review" value="<?php esc_attr_e('Submit for Review') ?>" id="review" /> 465 465 <?php } ?> 466 466 <img src="images/wpspin_light.gif" alt="" id="saving" style="display:none;" /> … … 482 482 <a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a> 483 483 <p id="category-add" class="wp-hidden-child"> 484 <label class="invisible" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _ea( 'New category name' ); ?>" tabindex="3" aria-required="true"/>484 <label class="invisible" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" tabindex="3" aria-required="true"/> 485 485 <label class="invisible" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> 486 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _ea( 'Add' ); ?>" tabindex="3" />486 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php esc_attr_e( 'Add' ); ?>" tabindex="3" /> 487 487 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> 488 488 <span id="category-ajax-response"></span> … … 500 500 <input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" /> 501 501 <span class="ajaxtag" style="display:none;"> 502 <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" />503 <input type="button" class="button tagadd" value="<?php _ea('Add'); ?>" tabindex="3" />502 <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php esc_attr_e('Add new tag'); ?>" /> 503 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" /> 504 504 </span> 505 505 </p> … … 519 519 <div id="titlediv"> 520 520 <div class="titlewrap"> 521 <input name="title" id="title" class="text" value="<?php echo attr($title);?>"/>521 <input name="title" id="title" class="text" value="<?php echo esc_attr($title);?>"/> 522 522 </div> 523 523 </div>
Note: See TracChangeset
for help on using the changeset viewer.