Changeset 11204 for trunk/wp-admin/includes/dashboard.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r11190 r11204 133 133 echo '<form action="" method="post" class="dashboard-widget-control-form">'; 134 134 wp_dashboard_trigger_widget_control( $meta_box['id'] ); 135 echo "<p class='submit'><input type='hidden' name='widget_id' value='" . attr($meta_box['id']) . "' /><input type='submit' value='" . _a( 'Submit' ) . "' /></p>";135 echo "<p class='submit'><input type='hidden' name='widget_id' value='" . esc_attr($meta_box['id']) . "' /><input type='submit' value='" . esc_attr__( 'Submit' ) . "' /></p>"; 136 136 137 137 echo '</form>'; … … 389 389 <h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4> 390 390 <div class="input-text-wrap"> 391 <input type="text" name="post_title" id="title" tabindex="1" autocomplete="off" value="<?php echo attr( $post->post_title ); ?>" />391 <input type="text" name="post_title" id="title" tabindex="1" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" /> 392 392 </div> 393 393 … … 414 414 <input type="hidden" name="quickpress_post_ID" value="<?php echo (int) $post->ID; ?>" /> 415 415 <?php wp_nonce_field('add-post'); ?> 416 <input type="submit" name="save" id="save-post" class="button" tabindex="4" value="<?php _ea('Save Draft'); ?>" />417 <input type="reset" value="<?php _ea( 'Reset' ); ?>" class="button" />416 <input type="submit" name="save" id="save-post" class="button" tabindex="4" value="<?php esc_attr_e('Save Draft'); ?>" /> 417 <input type="reset" value="<?php esc_attr_e( 'Reset' ); ?>" class="button" /> 418 418 <?php if ( current_user_can('publish_posts') ) { ?> 419 <input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="<?php _ea('Publish'); ?>" />419 <input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="<?php esc_attr_e('Publish'); ?>" /> 420 420 <?php } else { ?> 421 <input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="<?php _ea('Submit for Review'); ?>" />421 <input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="<?php esc_attr_e('Submit for Review'); ?>" /> 422 422 <?php } ?> 423 423 <br class="clear" /> … … 450 450 $url = get_edit_post_link( $draft->ID ); 451 451 $title = _draft_or_post_title( $draft->ID ); 452 $item = "<h4><a href='$url' title='" . sprintf( __( 'Edit “%s”' ), attr( $title ) ) . "'>$title</a> <abbr title='" . get_the_time(__('Y/m/d g:i:s A'), $draft) . "'>" . get_the_time( get_option( 'date_format' ), $draft ) . '</abbr></h4>';452 $item = "<h4><a href='$url' title='" . sprintf( __( 'Edit “%s”' ), esc_attr( $title ) ) . "'>$title</a> <abbr title='" . get_the_time(__('Y/m/d g:i:s A'), $draft) . "'>" . get_the_time( get_option( 'date_format' ), $draft ) . '</abbr></h4>'; 453 453 if ( $the_content = preg_split( '#\s#', strip_tags( $draft->post_content ), 11, PREG_SPLIT_NO_EMPTY ) ) 454 454 $item .= '<p>' . join( ' ', array_slice( $the_content, 0, 10 ) ) . ( 10 < count( $the_content ) ? '…' : '' ) . '</p>'; … … 597 597 <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden"> 598 598 <textarea class="comment" rows="3" cols="10"><?php echo $comment->comment_content; ?></textarea> 599 <div class="author-email"><?php echo attr( $comment->comment_author_email ); ?></div>600 <div class="author"><?php echo attr( $comment->comment_author ); ?></div>601 <div class="author-url"><?php echo attr( $comment->comment_author_url ); ?></div>599 <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div> 600 <div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div> 601 <div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div> 602 602 <div class="comment_status"><?php echo $comment->comment_approved; ?></div> 603 603 </div>
Note: See TracChangeset
for help on using the changeset viewer.