Changeset 11173
- Timestamp:
- 05/04/2009 05:54:08 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/blogger.php
r11081 r11173 52 52 $prereqs = __('To use this importer, you must have a Google account and an upgraded (New, was Beta) blog hosted on blogspot.com or a custom domain (not FTP).'); 53 53 $stepone = __('The first thing you need to do is tell Blogger to let WordPress access your account. You will be sent back here after providing authorization.'); 54 $auth = _ _('Authorize');54 $auth = _a('Authorize'); 55 55 56 56 echo " … … 215 215 else 216 216 $value = $authors; 217 $value = attr($value); 217 218 $blogtitle = js_escape( $blog['title'] ); 218 219 $pdone = isset($blog['posts_done']) ? (int) $blog['posts_done'] : 0; … … 663 664 $rows .= "<tr><td><label for='authors[$i]'>{$author[0]}</label></td><td><select name='authors[$i]' id='authors[$i]'>" . $this->get_user_options($author[1]) . "</select></td></tr>"; 664 665 665 return "<div class='wrap'><h2>$heading</h2><h3>$blogtitle</h3><p>$directions</p><form action='index.php?import=blogger&noheader=true&saveauthors=1' method='post'><input type='hidden' name='blog' value=' $importing_blog' /><table cellpadding='5'><thead><td>$mapthis</td><td>$tothis</td></thead>$rows<tr><td></td><td class='submit'><input type='submit' class='button authorsubmit' value='$submit' /></td></tr></table></form></div>";666 return "<div class='wrap'><h2>$heading</h2><h3>$blogtitle</h3><p>$directions</p><form action='index.php?import=blogger&noheader=true&saveauthors=1' method='post'><input type='hidden' name='blog' value='" . attr($importing_blog) . "' /><table cellpadding='5'><thead><td>$mapthis</td><td>$tothis</td></thead>$rows<tr><td></td><td class='submit'><input type='submit' class='button authorsubmit' value='$submit' /></td></tr></table></form></div>"; 666 667 } 667 668 … … 832 833 $restart = __('Restart'); 833 834 $message = __('We have saved some information about your Blogger account in your WordPress database. Clearing this information will allow you to start over. Restarting will not affect any posts you have already imported. If you attempt to re-import a blog, duplicate posts and comments will be skipped.'); 834 $submit = _ _('Clear account information');835 $submit = _a('Clear account information'); 835 836 echo "<div class='wrap'><h2>$restart</h2><p>$message</p><form method='post' action='?import=blogger&noheader=true'><p class='submit' style='text-align:left;'><input type='submit' class='button' value='$submit' name='restart' /></p></form></div>"; 836 837 } -
trunk/wp-admin/import/btt.php
r10606 r11173 36 36 echo '<form action="admin.php?import=btt&step=1" method="post">'; 37 37 wp_nonce_field('import-btt'); 38 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Import Tags').'" /></p>';38 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Import Tags').'" /></p>'; 39 39 echo '</form>'; 40 40 echo '</div>'; … … 106 106 echo '<form action="admin.php?import=btt&step='.($precheck? 2:3).'" method="post">'; 107 107 wp_nonce_field('import-btt'); 108 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Next').'" /></p>';108 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Next').'" /></p>'; 109 109 echo '</form>'; 110 110 echo '</div>'; -
trunk/wp-admin/import/dotclear.php
r11109 r11173 216 216 wp_nonce_field('import-dotclear'); 217 217 $this->db_form(); 218 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'. attr(__('Import Categories')).'" /></p>';218 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Import Categories').'" /></p>'; 219 219 echo '</form></div>'; 220 220 } … … 633 633 echo '<form action="admin.php?import=dotclear&step=2" method="post">'; 634 634 wp_nonce_field('import-dotclear'); 635 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attr(__('Import Users')));635 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', _a('Import Users')); 636 636 echo '</form>'; 637 637 … … 646 646 echo '<form action="admin.php?import=dotclear&step=3" method="post">'; 647 647 wp_nonce_field('import-dotclear'); 648 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attr(__('Import Posts')));648 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', _a('Import Posts')); 649 649 echo '</form>'; 650 650 } … … 660 660 echo '<form action="admin.php?import=dotclear&step=4" method="post">'; 661 661 wp_nonce_field('import-dotclear'); 662 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attr(__('Import Comments')));662 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', _a('Import Comments')); 663 663 echo '</form>'; 664 664 } … … 672 672 echo '<form action="admin.php?import=dotclear&step=5" method="post">'; 673 673 wp_nonce_field('import-dotclear'); 674 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attr(__('Import Links')));674 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', _a('Import Links')); 675 675 echo '</form>'; 676 676 } … … 685 685 echo '<form action="admin.php?import=dotclear&step=6" method="post">'; 686 686 wp_nonce_field('import-dotclear'); 687 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attr(__('Finish')));687 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', _a('Finish')); 688 688 echo '</form>'; 689 689 } -
trunk/wp-admin/import/greymatter.php
r10606 r11173 67 67 </tr> 68 68 </table> 69 <p class="submit"><input type="submit" name="submit" class="button" value="<?php _e ('Start Importing') ?>" /></p>69 <p class="submit"><input type="submit" name="submit" class="button" value="<?php _ea('Start Importing') ?>" /></p> 70 70 </form> 71 71 <?php -
trunk/wp-admin/import/jkw.php
r10606 r11173 35 35 echo '<form action="admin.php?import=jkw&step=1" method="post">'; 36 36 wp_nonce_field('import-jkw'); 37 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Import Version 1.x').'" /></p>';37 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Import Version 1.x').'" /></p>'; 38 38 echo '</form>'; 39 39 echo '<form action="admin.php?import=jkw&step=3" method="post">'; 40 40 wp_nonce_field('import-jkw'); 41 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Import Version 2.0a').'" /></p>';41 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Import Version 2.0a').'" /></p>'; 42 42 echo '</form>'; 43 43 echo '</div>'; … … 121 121 echo '<form action="admin.php?import=jkw&step='.($precheck? 2:6).'" method="post">'; 122 122 wp_nonce_field('import-jkw'); 123 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Next').'" /></p>';123 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Next').'" /></p>'; 124 124 echo '</form>'; 125 125 echo '</div>'; … … 154 154 echo '<form action="admin.php?import=jkw&step='.($precheck? 4:5).'" method="post">'; 155 155 wp_nonce_field('import-jkw'); 156 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Next').'" /></p>';156 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Next').'" /></p>'; 157 157 echo '</form>'; 158 158 echo '</div>'; -
trunk/wp-admin/import/livejournal.php
r11150 r11173 182 182 <?php wp_nonce_field( 'lj-api-import' ) ?> 183 183 <?php if ( get_option( 'ljapi_username' ) && get_option( 'ljapi_password' ) ) : ?> 184 <input type="hidden" name="step" value="<?php echo get_option( 'ljapi_step') ?>" />184 <input type="hidden" name="step" value="<?php echo attr( get_option( 'ljapi_step' ) ) ?>" /> 185 185 <p><?php _e( 'It looks like you attempted to import your LiveJournal posts previously and got interrupted.' ) ?></p> 186 186 <p class="submit"> 187 <input type="submit" class="button-primary" value="<?php echo attr( __( 'Continue previous import' )) ?>" />187 <input type="submit" class="button-primary" value="<?php _ea( 'Continue previous import' ) ?>" /> 188 188 </p> 189 189 <p class="submitbox"><a href="<?php echo clean_url($_SERVER['PHP_SELF'] . '?import=livejournal&step=-1&_wpnonce=' . wp_create_nonce( 'lj-api-import' ) . '&_wp_http_referer=' . attr( $_SERVER['REQUEST_URI'] )) ?>" class="deletion submitdelete"><?php _e( 'Cancel & start a new import' ) ?></a></p> … … 224 224 225 225 <p class="submit"> 226 <input type="submit" class="button-primary" value="<?php echo attr( __( 'Connect to LiveJournal and Import' )) ?>" />226 <input type="submit" class="button-primary" value="<?php _ea( 'Connect to LiveJournal and Import' ) ?>" /> 227 227 </p> 228 228 … … 817 817 <?php wp_nonce_field( 'lj-api-import' ) ?> 818 818 <input type="hidden" name="step" id="step" value="1" /> 819 <p><input type="submit" class="button-primary" value="<?php echo attr( __( 'Import the next batch' )) ?>" /> <span id="auto-message"></span></p>819 <p><input type="submit" class="button-primary" value="<?php _ea( 'Import the next batch' ) ?>" /> <span id="auto-message"></span></p> 820 820 </form> 821 821 <?php $this->auto_ajax( 'ljapi-auto-repost', 'auto-message', 0 ); ?> … … 867 867 <?php wp_nonce_field( 'lj-api-import' ) ?> 868 868 <input type="hidden" name="step" id="step" value="2" /> 869 <p><input type="submit" class="button-primary" value="<?php echo attr( __( 'Import the next batch' )) ?>" /> <span id="auto-message"></span></p>869 <p><input type="submit" class="button-primary" value="<?php _ea( 'Import the next batch' ) ?>" /> <span id="auto-message"></span></p> 870 870 </form> 871 871 <?php $this->auto_ajax( 'ljapi-auto-repost', 'auto-message', 0 ); ?> … … 942 942 $str .= wp_nonce_field( 'lj-api-import', '_wpnonce', true, false ); 943 943 $str .= wp_referer_field( false ); 944 $str .= '<input type="hidden" name="step" id="step" value="' . $next_step. '" />';944 $str .= '<input type="hidden" name="step" id="step" value="' . attr($next_step) . '" />'; 945 945 $str .= '<p><input type="submit" class="button-primary" value="' . attr( $label ) . '" /> <span id="auto-message"></span></p>'; 946 946 $str .= '</form>'; -
trunk/wp-admin/import/mt.php
r11109 r11173 47 47 <?php _e('Or use <code>mt-export.txt</code> in your <code>/wp-content/</code> directory'); ?></p> 48 48 <p class="submit"> 49 <input type="submit" class="button" value="<?php echo attr(__('Import mt-export.txt')); ?>" />49 <input type="submit" class="button" value="<?php _ea('Import mt-export.txt'); ?>" /> 50 50 </p> 51 51 </form> … … 208 208 foreach ($authors as $author) { 209 209 ++ $j; 210 echo '<li><label>'.__('Current author:').' <strong>'.$author.'</strong><br />'.sprintf(__('Create user %1$s or map to existing'), ' <input type="text" value="'. $author.'" name="'.'user[]'.'" maxlength="30"> <br />');210 echo '<li><label>'.__('Current author:').' <strong>'.$author.'</strong><br />'.sprintf(__('Create user %1$s or map to existing'), ' <input type="text" value="'. attr($author) .'" name="'.'user[]'.'" maxlength="30"> <br />'); 211 211 $this->users_form($j); 212 212 echo '</label></li>'; 213 213 } 214 214 215 echo '<p class="submit"><input type="submit" class="button" value="'._ _('Submit').'"></p>'.'<br />';215 echo '<p class="submit"><input type="submit" class="button" value="'._a('Submit').'"></p>'.'<br />'; 216 216 echo '</form>'; 217 217 echo '</ol></div>'; -
trunk/wp-admin/import/opml.php
r10995 r11173 65 65 </select></p> 66 66 67 <p class="submit"><input type="submit" name="submit" value="<?php _e ('Import OPML File') ?>" /></p>67 <p class="submit"><input type="submit" name="submit" value="<?php _ea('Import OPML File') ?>" /></p> 68 68 </form> 69 69 -
trunk/wp-admin/import/stp.php
r10606 r11173 34 34 echo '<form action="admin.php?import=stp&step=1" method="post">'; 35 35 wp_nonce_field('import-stp'); 36 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Step 1').'" /></p>';36 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Step 1').'" /></p>'; 37 37 echo '</form>'; 38 38 echo '</div>'; … … 94 94 echo '<form action="admin.php?import=stp&step=2" method="post">'; 95 95 wp_nonce_field('import-stp'); 96 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Step 2').'" /></p>';96 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Step 2').'" /></p>'; 97 97 echo '</form>'; 98 98 echo '</div>'; … … 110 110 echo '<form action="admin.php?import=stp&step=3" method="post">'; 111 111 wp_nonce_field('import-stp'); 112 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Step 3').'" /></p>';112 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Step 3').'" /></p>'; 113 113 echo '</form>'; 114 114 echo '</div>'; -
trunk/wp-admin/import/textpattern.php
r11109 r11173 71 71 wp_nonce_field('import-textpattern'); 72 72 $this->db_form(); 73 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'. attr(__('Import')).'" /></p>';73 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Import').'" /></p>'; 74 74 echo '</form>'; 75 75 echo '</div>'; … … 506 506 echo '<form action="admin.php?import=textpattern&step=2" method="post">'; 507 507 wp_nonce_field('import-textpattern'); 508 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attr(__('Import Users')));508 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', _a('Import Users')); 509 509 echo '</form>'; 510 510 … … 519 519 echo '<form action="admin.php?import=textpattern&step=3" method="post">'; 520 520 wp_nonce_field('import-textpattern'); 521 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attr(__('Import Posts')));521 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', _a('Import Posts')); 522 522 echo '</form>'; 523 523 } … … 533 533 echo '<form action="admin.php?import=textpattern&step=4" method="post">'; 534 534 wp_nonce_field('import-textpattern'); 535 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attr(__('Import Comments')));535 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', _a('Import Comments')); 536 536 echo '</form>'; 537 537 } … … 545 545 echo '<form action="admin.php?import=textpattern&step=5" method="post">'; 546 546 wp_nonce_field('import-textpattern'); 547 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attr(__('Import Links')));547 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', _a('Import Links')); 548 548 echo '</form>'; 549 549 } … … 558 558 echo '<form action="admin.php?import=textpattern&step=6" method="post">'; 559 559 wp_nonce_field('import-textpattern'); 560 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', attr(__('Finish')));560 printf('<p class="submit"><input type="submit" name="submit" class="button" value="%s" /></p>', _a('Finish')); 561 561 echo '</form>'; 562 562 } -
trunk/wp-admin/import/utw.php
r10606 r11173 34 34 echo '<p><strong>'.__('Don’t be stupid - backup your database before proceeding!').'</strong></p>'; 35 35 echo '<form action="admin.php?import=utw&step=1" method="post">'; 36 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Step 1').'" /></p>';36 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Step 1').'" /></p>'; 37 37 echo '</form>'; 38 38 echo '</div>'; … … 121 121 echo '<form action="admin.php?import=utw&step=2" method="post">'; 122 122 wp_nonce_field('import-utw'); 123 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Step 2').'" /></p>';123 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Step 2').'" /></p>'; 124 124 echo '</form>'; 125 125 echo '</div>'; … … 157 157 echo '<form action="admin.php?import=utw&step=3" method="post">'; 158 158 wp_nonce_field('import-utw'); 159 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Step 3').'" /></p>';159 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Step 3').'" /></p>'; 160 160 echo '</form>'; 161 161 echo '</div>'; … … 176 176 echo '<form action="admin.php?import=utw&step=4" method="post">'; 177 177 wp_nonce_field('import-utw'); 178 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._ _('Step 4').'" /></p>';178 echo '<p class="submit"><input type="submit" name="submit" class="button" value="'._a('Step 4').'" /></p>'; 179 179 echo '</form>'; 180 180 echo '</div>'; -
trunk/wp-admin/import/wordpress.php
r11109 r11173 234 234 235 235 echo '<p class="submit">'; 236 echo '<input type="submit" class="button" value="'. attr( __('Submit') ).'" />'.'<br />';236 echo '<input type="submit" class="button" value="'. _a('Submit') .'" />'.'<br />'; 237 237 echo '</p>'; 238 238 echo '</form>'; … … 243 243 244 244 if ( $this->allow_create_users() ) { 245 printf('<label>'.__('Create user %1$s or map to existing'), ' <input type="text" value="'. $author.'" name="'.'user_create['.intval($n).']'.'" maxlength="30" /></label> <br />');245 printf('<label>'.__('Create user %1$s or map to existing'), ' <input type="text" value="'. attr($author) .'" name="'.'user_create['.intval($n).']'.'" maxlength="30" /></label> <br />'); 246 246 } 247 247 else { … … 250 250 251 251 // keep track of $n => $author name 252 echo '<input type="hidden" name="author_in['.intval($n).']" value="'. htmlspecialchars($author).'" />';252 echo '<input type="hidden" name="author_in['.intval($n).']" value="'.attr($author).'" />'; 253 253 254 254 $users = get_users_of_blog(); -
trunk/wp-admin/import/wp-cat2tag.php
r11109 r11173 104 104 105 105 <form name="catlist" id="catlist" action="admin.php?import=wp-cat2tag&step=2" method="post"> 106 <p><input type="button" class="button-secondary" value="<?php _e ('Check All'); ?>" onclick="this.value=check_all_rows()" />106 <p><input type="button" class="button-secondary" value="<?php _ea('Check All'); ?>" onclick="this.value=check_all_rows()" /> 107 107 <?php wp_nonce_field('import-cat2tag'); ?></p> 108 108 <ul style="list-style:none"> … … 129 129 echo '<p><a name="note"></a>' . __('* This category is also a tag. Converting it will add that tag to all posts that are currently in the category.') . '</p>'; ?> 130 130 131 <p class="submit"><input type="submit" name="submit" class="button" value="<?php _e ('Convert Categories to Tags'); ?>" /></p>131 <p class="submit"><input type="submit" name="submit" class="button" value="<?php _ea('Convert Categories to Tags'); ?>" /></p> 132 132 </form> 133 133 … … 180 180 181 181 <form name="taglist" id="taglist" action="admin.php?import=wp-cat2tag&step=4" method="post"> 182 <p><input type="button" class="button-secondary" value="<?php _e ('Check All'); ?>" onclick="this.value=check_all_tagrows()" />182 <p><input type="button" class="button-secondary" value="<?php _ea('Check All'); ?>" onclick="this.value=check_all_tagrows()" /> 183 183 <?php wp_nonce_field('import-cat2tag'); ?></p> 184 184 <ul style="list-style:none"> … … 193 193 echo '<p><a name="note"></a>' . __('* This tag is also a category. When converted, all posts associated with the tag will also be in the category.') . '</p>'; ?> 194 194 195 <p class="submit"><input type="submit" name="submit_tags" class="button" value="<?php _e ('Convert Tags to Categories'); ?>" /></p>195 <p class="submit"><input type="submit" name="submit_tags" class="button" value="<?php _ea('Convert Tags to Categories'); ?>" /></p> 196 196 </form> 197 197 -
trunk/wp-admin/includes/dashboard.php
r11131 r11173 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=' $meta_box[id]' /><input type='submit' value='" . __( 'Submit' ) . "' /></p>";135 echo "<p class='submit'><input type='hidden' name='widget_id' value='" . attr($meta_box['id']) . "' /><input type='submit' value='" . _a( 'Submit' ) . "' /></p>"; 136 136 137 137 echo '</form>'; … … 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 _e ('Save Draft'); ?>" />417 <input type="reset" value="<?php _e ( 'Reset' ); ?>" class="button" />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" /> 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 _e ('Publish'); ?>" />419 <input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="<?php _ea('Publish'); ?>" /> 420 420 <?php } else { ?> 421 <input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="<?php _e ('Submit for Review'); ?>" />421 <input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="<?php _ea('Submit for Review'); ?>" /> 422 422 <?php } ?> 423 423 <br class="clear" /> -
trunk/wp-admin/includes/file.php
r11168 r11173 774 774 <?php endif; ?> 775 775 <p class="submit"> 776 <input id="upgrade" name="upgrade" type="submit" class="button" value="<?php _e ('Proceed'); ?>" />776 <input id="upgrade" name="upgrade" type="submit" class="button" value="<?php _ea('Proceed'); ?>" /> 777 777 </p> 778 778 </div> -
trunk/wp-admin/includes/media.php
r11152 r11173 752 752 $out = array(); 753 753 foreach ($alignments as $name => $label) { 754 754 $name = attr($name); 755 755 $out[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'". 756 756 ( $checked == $name ? " checked='checked'" : "" ) . … … 1157 1157 $delete_href = wp_nonce_url("post.php?action=delete-post&post=$attachment_id", 'delete-post_' . $attachment_id); 1158 1158 if ( $send ) 1159 $send = "<input type='submit' class='button' name='send[$attachment_id]' value='" . attr( __( 'Insert into Post' )) . "' />";1159 $send = "<input type='submit' class='button' name='send[$attachment_id]' value='" . _a( 'Insert into Post' ) . "' />"; 1160 1160 if ( $delete ) 1161 1161 $delete = "<a href=\"#\" class=\"del-link\" onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __('Delete') . "</a>"; … … 1414 1414 ?> 1415 1415 </div> 1416 <input type="submit" class="button savebutton" name="save" value="<?php echo attr( __( 'Save all changes' )); ?>" />1416 <input type="submit" class="button savebutton" name="save" value="<?php _ea( 'Save all changes' ); ?>" /> 1417 1417 <?php 1418 1418 } … … 1587 1587 1588 1588 <p class="ml-submit"> 1589 <input type="submit" class="button savebutton" style="display:none;" name="save" id="save-all" value="<?php echo attr( __( 'Save all changes' )); ?>" />1589 <input type="submit" class="button savebutton" style="display:none;" name="save" id="save-all" value="<?php _ea( 'Save all changes' ); ?>" /> 1590 1590 <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" /> 1591 1591 <input type="hidden" name="type" value="<?php echo attr( $GLOBALS['type'] ); ?>" /> … … 1664 1664 1665 1665 <p class="ml-submit"> 1666 <input type="button" class="button" style="display:none;" onmousedown="wpgallery.update();" name="insert-gallery" id="insert-gallery" value="<?php echo attr( __( 'Insert gallery' )); ?>" />1667 <input type="button" class="button" style="display:none;" onmousedown="wpgallery.update();" name="update-gallery" id="update-gallery" value="<?php echo attr( __( 'Update gallery settings' )); ?>" />1666 <input type="button" class="button" style="display:none;" onmousedown="wpgallery.update();" name="insert-gallery" id="insert-gallery" value="<?php _ea( 'Insert gallery' ); ?>" /> 1667 <input type="button" class="button" style="display:none;" onmousedown="wpgallery.update();" name="update-gallery" id="update-gallery" value="<?php _ea( 'Update gallery settings' ); ?>" /> 1668 1668 </p> 1669 1669 </div> … … 1709 1709 <label class="hidden" for="media-search-input"><?php _e('Search Media');?>:</label> 1710 1710 <input type="text" id="media-search-input" name="s" value="<?php the_search_query(); ?>" /> 1711 <input type="submit" value="<?php echo attr( __( 'Search Media' )); ?>" class="button" />1711 <input type="submit" value="<?php _ea( 'Search Media' ); ?>" class="button" /> 1712 1712 </p> 1713 1713 … … 1826 1826 </div> 1827 1827 <p class="ml-submit"> 1828 <input type="submit" class="button savebutton" name="save" value="<?php echo attr( __( 'Save all changes' )); ?>" />1828 <input type="submit" class="button savebutton" name="save" value="<?php _ea( 'Save all changes' ); ?>" /> 1829 1829 <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" /> 1830 1830 </p> … … 1908 1908 <td></td> 1909 1909 <td> 1910 <input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . attr(__('Insert into Post')) . '" />1910 <input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . _a('Insert into Post') . '" /> 1911 1911 </td> 1912 1912 </tr> … … 1944 1944 <td></td> 1945 1945 <td> 1946 <input type="submit" class="button" name="insertonlybutton" value="' . attr(__('Insert into Post')) . '" />1946 <input type="submit" class="button" name="insertonlybutton" value="' . _a('Insert into Post') . '" /> 1947 1947 </td> 1948 1948 </tr> … … 1979 1979 <td></td> 1980 1980 <td> 1981 <input type="submit" class="button" name="insertonlybutton" value="' . attr(__('Insert into Post')) . '" />1981 <input type="submit" class="button" name="insertonlybutton" value="' . _a('Insert into Post') . '" /> 1982 1982 </td> 1983 1983 </tr> … … 2014 2014 <td></td> 2015 2015 <td> 2016 <input type="submit" class="button" name="insertonlybutton" value="' . attr(__('Insert into Post')) . '" />2016 <input type="submit" class="button" name="insertonlybutton" value="' . _a('Insert into Post') . '" /> 2017 2017 </td> 2018 2018 </tr> -
trunk/wp-admin/includes/plugin-install.php
r11152 r11173 214 214 <label class="hidden" for="pluginzip"><?php _e('Plugin zip file'); ?></label> 215 215 <input type="file" id="pluginzip" name="pluginzip" /> 216 <input type="submit" class="button" value="<?php _e ('Install Now') ?>" />216 <input type="submit" class="button" value="<?php _ea('Install Now') ?>" /> 217 217 </form> 218 218 <?php -
trunk/wp-admin/includes/plugin.php
r11168 r11173 1113 1113 */ 1114 1114 function settings_fields($option_group) { 1115 echo "<input type='hidden' name='option_page' value=' $option_group' />";1115 echo "<input type='hidden' name='option_page' value='" . attr($option_group) . "' />"; 1116 1116 echo '<input type="hidden" name="action" value="update" />'; 1117 1117 wp_nonce_field("$option_group-options"); -
trunk/wp-admin/includes/template.php
r11166 r11173 2305 2305 <input type="hidden" name="position" id="position" value="<?php echo $position; ?>" /> 2306 2306 <input type="hidden" name="checkbox" id="checkbox" value="<?php echo $checkbox ? 1 : 0; ?>" /> 2307 <input type="hidden" name="mode" id="mode" value="<?php echo $mode; ?>" />2307 <input type="hidden" name="mode" id="mode" value="<?php echo attr($mode); ?>" /> 2308 2308 <?php wp_nonce_field( 'replyto-comment', '_ajax_nonce', false ); ?> 2309 2309 <?php wp_comment_form_unfiltered_html_nonce(); ?> … … 2437 2437 2438 2438 $r .= "\n\t\t<div class='submit'><input name='deletemeta[{$entry['meta_id']}]' type='submit' "; 2439 $r .= "class='delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta' tabindex='6' value='". attr(__( 'Delete' ))."' />";2440 $r .= "\n\t\t<input name='updatemeta' type='submit' tabindex='6' value='". attr(__( 'Update' ))."' class='add:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$update_nonce updatemeta' /></div>";2439 $r .= "class='delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta' tabindex='6' value='". _a( 'Delete' ) ."' />"; 2440 $r .= "\n\t\t<input name='updatemeta' type='submit' tabindex='6' value='". _a( 'Update' ) ."' class='add:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$update_nonce updatemeta' /></div>"; 2441 2441 $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false ); 2442 2442 $r .= "</td>"; … … 2487 2487 foreach ( $keys as $key ) { 2488 2488 $key = attr( $key ); 2489 echo "\n<option value=' $key'>$key</option>";2489 echo "\n<option value='" . attr($key) . "'>$key</option>"; 2490 2490 } 2491 2491 ?> … … 2503 2503 2504 2504 <tr><td colspan="2" class="submit"> 2505 <input type="submit" id="addmetasub" name="addmeta" class="add:the-list:newmeta" tabindex="9" value="<?php _e ( 'Add Custom Field' ) ?>" />2505 <input type="submit" id="addmetasub" name="addmeta" class="add:the-list:newmeta" tabindex="9" value="<?php _ea( 'Add Custom Field' ) ?>" /> 2506 2506 <?php wp_nonce_field( 'add-meta', '_ajax_nonce', false ); ?> 2507 2507 </td></tr> … … 2723 2723 $name = translate_user_role($details['name'] ); 2724 2724 if ( $selected == $role ) // Make default first in list 2725 $p = "\n\t<option selected='selected' value=' $role'>$name</option>";2725 $p = "\n\t<option selected='selected' value='" . attr($role) . "'>$name</option>"; 2726 2726 else 2727 $r .= "\n\t<option value=' $role'>$name</option>";2727 $r .= "\n\t<option value='" . attr($role) . "'>$name</option>"; 2728 2728 } 2729 2729 echo $p . $r; … … 2805 2805 </p> 2806 2806 <p class="submit"> 2807 <input type="submit" class="button" value="<?php _e ( 'Upload file and import' ); ?>" />2807 <input type="submit" class="button" value="<?php _ea( 'Upload file and import' ); ?>" /> 2808 2808 </p> 2809 2809 </form> … … 3158 3158 <div class="find-box-search"> 3159 3159 <?php if ( $found_action ) { ?> 3160 <input type="hidden" name="found_action" value="<?php echo $found_action; ?>" />3160 <input type="hidden" name="found_action" value="<?php echo attr($found_action); ?>" /> 3161 3161 <?php } ?> 3162 3162 … … 3165 3165 <label class="hidden" for="find-posts-input"><?php _e( 'Search' ); ?></label> 3166 3166 <input type="text" id="find-posts-input" name="ps" value="" /> 3167 <input type="button" onclick="findPosts.send();" value="<?php _e ( 'Search' ); ?>" class="button" /><br />3167 <input type="button" onclick="findPosts.send();" value="<?php _ea( 'Search' ); ?>" class="button" /><br /> 3168 3168 3169 3169 <input type="radio" name="find-posts-what" id="find-posts-posts" checked="checked" value="posts" /> … … 3175 3175 </div> 3176 3176 <div class="find-box-buttons"> 3177 <input type="button" class="button alignleft" onclick="findPosts.close();" value="<?php _e ('Close'); ?>" />3178 <input id="find-posts-submit" type="submit" class="button-primary alignright" value="<?php _e ('Select'); ?>" />3177 <input type="button" class="button alignleft" onclick="findPosts.close();" value="<?php _ea('Close'); ?>" /> 3178 <input id="find-posts-submit" type="submit" class="button-primary alignright" value="<?php _ea('Select'); ?>" /> 3179 3179 </div> 3180 3180 </div> … … 3647 3647 if ( !empty($per_page_label) ) 3648 3648 $return .= "<label for='$option'>$per_page_label</label> <input type='text' class='screen-per-page' name='wp_screen_options[value]' id='$option' maxlength='3' value='$per_page' />\n"; 3649 $return .= "<input type='submit' class='button' value='" . _ _('Apply') . "' />";3650 $return .= "<input type='hidden' name='wp_screen_options[option]' value=' $option' />";3649 $return .= "<input type='submit' class='button' value='" . _a('Apply') . "' />"; 3650 $return .= "<input type='hidden' name='wp_screen_options[option]' value='" . attr($option) . "' />"; 3651 3651 $return .= "</div>\n"; 3652 3652 return $return; -
trunk/wp-admin/includes/theme-install.php
r11109 r11173 160 160 </select> 161 161 <input type="text" name="s" size="30" value="<?php echo attr($term) ?>" /> 162 <input type="submit" name="search" value="<?php echo attr(__('Search')); ?>" class="button" />162 <input type="submit" name="search" value="<?php _ea('Search'); ?>" class="button" /> 163 163 </form> 164 164 <?php … … 219 219 </div> 220 220 <br class="clear" /> 221 <input type="submit" name="search" value="<?php echo attr(__('Find Themes')); ?>" class="button" />221 <input type="submit" name="search" value="<?php _ea('Find Themes'); ?>" class="button" /> 222 222 </form> 223 223 <?php … … 282 282 <input type="file" name="themezip" /> 283 283 <input type="submit" 284 class="button" value="<?php _e ('Install Now') ?>" />284 class="button" value="<?php _ea('Install Now') ?>" /> 285 285 </form> 286 286 <?php -
trunk/wp-admin/includes/widgets.php
r11166 r11173 184 184 echo "\t\t<p>" . __('There are no options for this widget.') . "</p>\n"; ?> 185 185 186 <input type="hidden" name="widget-id" class="widget-id" value="<?php echo $id_format; ?>" />187 <input type="hidden" name="id_base" class="id_base" value="<?php echo $ id_base; ?>" />188 <input type="hidden" name="widget-width" class="widget-width" value="<?php echo $control['width']; ?>" />189 <input type="hidden" name="widget-height" class="widget-height" value="<?php echo $control['height']; ?>" />190 <input type="hidden" name="widget_number" class="widget_number" value="<?php echo $widget_number; ?>" />191 <input type="hidden" name="multi_number" class="multi_number" value="<?php echo $multi_number; ?>" />192 <input type="hidden" name="add_new" class="add_new" value="<?php echo $add_new; ?>" />186 <input type="hidden" name="widget-id" class="widget-id" value="<?php echo attr($id_format); ?>" /> 187 <input type="hidden" name="id_base" class="id_base" value="<?php echo $attr(id_base); ?>" /> 188 <input type="hidden" name="widget-width" class="widget-width" value="<?php echo attr($control['width']); ?>" /> 189 <input type="hidden" name="widget-height" class="widget-height" value="<?php echo attr($control['height']); ?>" /> 190 <input type="hidden" name="widget_number" class="widget_number" value="<?php echo attr($widget_number); ?>" /> 191 <input type="hidden" name="multi_number" class="multi_number" value="<?php echo attr($multi_number); ?>" /> 192 <input type="hidden" name="add_new" class="add_new" value="<?php echo attr($add_new); ?>" /> 193 193 194 194 <div class="widget-control-actions"> 195 195 <a class="button widget-control-remove alignleft" href="<?php echo $edit ? clean_url( add_query_arg( array( 'remove' => $id_format, 'key' => $key, '_wpnonce' => $nonce ) ) ) : '#remove'; ?>"><?php _e('Remove'); ?></a> 196 196 <?php if ( 'noform' !== $has_form ) { ?> 197 <input type="submit" name="savewidget" class="button-primary widget-control-save alignright" value="<?php _e ('Save'); ?>" />197 <input type="submit" name="savewidget" class="button-primary widget-control-save alignright" value="<?php _ea('Save'); ?>" /> 198 198 <?php } ?> 199 199 <br class="clear" /> -
trunk/wp-admin/press-this.php
r11150 r11173 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 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>'; 386 387 387 388 } elseif ( preg_match("/vimeo\.com\/[0-9]+/i", $url) ) { 388 389 list($domain, $video_id) = split(".com/", $url); 390 $video_id = attr($video_id); 389 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>'; 390 392 -
trunk/wp-admin/theme-editor.php
r11110 r11173 97 97 $docs_select .= '<option value="">' . _a( 'Function Name...' ) . '</option>'; 98 98 foreach ( $functions as $function ) { 99 $docs_select .= '<option value="' . urlencode( $function) . '">' . htmlspecialchars( $function ) . '()</option>';99 $docs_select .= '<option value="' . attr( urlencode( $function ) ) . '">' . htmlspecialchars( $function ) . '()</option>'; 100 100 } 101 101 $docs_select .= '</select>'; -
trunk/wp-content/themes/classic/comments-popup.php
r11109 r11173 68 68 <?php else : ?> 69 69 <p> 70 <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />70 <input type="text" name="author" id="author" class="textarea" value="<?php echo attr($comment_author); ?>" size="28" tabindex="1" /> 71 71 <label for="author"><?php _e("Name"); ?></label> 72 72 </p> 73 73 74 74 <p> 75 <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />75 <input type="text" name="email" id="email" value="<?php echo attr($comment_author_email); ?>" size="28" tabindex="2" /> 76 76 <label for="email"><?php _e("E-mail"); ?></label> 77 77 </p> 78 78 79 79 <p> 80 <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />80 <input type="text" name="url" id="url" value="<?php echo attr($comment_author_url); ?>" size="28" tabindex="3" /> 81 81 <label for="url"><?php _e("<abbr title=\"Universal Resource Locator\">URL</abbr>"); ?></label> 82 82 </p> … … 92 92 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 93 93 <input type="hidden" name="redirect_to" value="<?php echo attr($_SERVER["REQUEST_URI"]); ?>" /> 94 <input name="submit" type="submit" tabindex="5" value="<?php _e ("Say It!"); ?>" />94 <input name="submit" type="submit" tabindex="5" value="<?php _ea("Say It!"); ?>" /> 95 95 </p> 96 96 <?php do_action('comment_form', $post->ID); ?> -
trunk/wp-content/themes/classic/comments.php
r11109 r11173 54 54 <?php else : ?> 55 55 56 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />56 <p><input type="text" name="author" id="author" value="<?php echo attr($comment_author); ?>" size="22" tabindex="1" /> 57 57 <label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p> 58 58 59 <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />59 <p><input type="text" name="email" id="email" value="<?php echo attr($comment_author_email); ?>" size="22" tabindex="2" /> 60 60 <label for="email"><small><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></small></label></p> 61 61 62 <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />62 <p><input type="text" name="url" id="url" value="<?php echo attr($comment_author_url); ?>" size="22" tabindex="3" /> 63 63 <label for="url"><small><?php _e('Website'); ?></small></label></p> 64 64 … … 69 69 <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> 70 70 71 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php echo attr(__('Submit Comment')); ?>" />71 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _ea('Submit Comment'); ?>" /> 72 72 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 73 73 </p> -
trunk/wp-content/themes/classic/sidebar.php
r8999 r11173 19 19 <div> 20 20 <input type="text" name="s" id="s" size="15" /><br /> 21 <input type="submit" value="<?php _e ('Search'); ?>" />21 <input type="submit" value="<?php _ea('Search'); ?>" /> 22 22 </div> 23 23 </form> -
trunk/wp-content/themes/default/comments-popup.php
r11109 r11173 67 67 <?php else : ?> 68 68 <p> 69 <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />69 <input type="text" name="author" id="author" class="textarea" value="<?php echo attr($comment_author); ?>" size="28" tabindex="1" /> 70 70 <label for="author">Name</label> 71 71 </p> 72 72 73 73 <p> 74 <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />74 <input type="text" name="email" id="email" value="<?php echo attr($comment_author_email); ?>" size="28" tabindex="2" /> 75 75 <label for="email">E-mail</label> 76 76 </p> 77 77 78 78 <p> 79 <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />79 <input type="text" name="url" id="url" value="<?php echo attr($comment_author_url); ?>" size="28" tabindex="3" /> 80 80 <label for="url"><abbr title="Universal Resource Locator">URL</abbr></label> 81 81 </p> -
trunk/wp-content/themes/default/comments.php
r11067 r11173 69 69 <?php else : ?> 70 70 71 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />71 <p><input type="text" name="author" id="author" value="<?php echo attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> 72 72 <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p> 73 73 74 <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />74 <p><input type="text" name="email" id="email" value="<?php echo attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> 75 75 <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p> 76 76 77 <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />77 <p><input type="text" name="url" id="url" value="<?php echo attr($comment_author_url); ?>" size="22" tabindex="3" /> 78 78 <label for="url"><small>Website</small></label></p> 79 79 -
trunk/wp-content/themes/default/functions.php
r11109 r11173 167 167 } 168 168 function PopupWindow_populate(contents) { 169 contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" class="button-secondary" value="<?php echo attr(__('Close Color Picker')); ?>" onclick="cp.hidePopup(\'prettyplease\')"></input></p>';169 contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" class="button-secondary" value="<?php _ea('Close Color Picker'); ?>" onclick="cp.hidePopup(\'prettyplease\')"></input></p>'; 170 170 this.contents = contents; 171 171 this.populated = false; … … 381 381 <form method="post" action=""> 382 382 <?php wp_nonce_field('kubrick-header'); ?> 383 <div class="zerosize"><input type="submit" name="defaultsubmit" value="<?php echo attr(__('Save')); ?>" /></div>383 <div class="zerosize"><input type="submit" name="defaultsubmit" value="<?php _ea('Save'); ?>" /></div> 384 384 <label for="njfontcolor"><?php _e('Font Color:'); ?></label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo attr(kubrick_header_color()); ?>" /> <?php printf(__('Any CSS color (%s or %s or %s)'), '<code>red</code>', '<code>#FF0000</code>', '<code>rgb(255, 0, 0)</code>'); ?><br /> 385 385 <label for="njuppercolor"><?php _e('Upper Color:'); ?></label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo attr(kubrick_upper_color()); ?>" /> <?php printf(__('HEX only (%s or %s)'), '<code>#FF0000</code>', '<code>#F00</code>'); ?><br /> 386 386 <label for="njlowercolor"><?php _e('Lower Color:'); ?></label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo attr(kubrick_lower_color()); ?>" /> <?php printf(__('HEX only (%s or %s)'), '<code>#FF0000</code>', '<code>#F00</code>'); ?><br /> 387 387 <input type="hidden" name="hi" id="hi" value="<?php echo attr(kubrick_header_image()); ?>" /> 388 <input type="submit" name="toggledisplay" id="toggledisplay" value="<?php echo attr(__('Toggle Text')); ?>" />389 <input type="submit" name="defaults" value="<?php echo attr(__('Use Defaults')); ?>" />390 <input type="submit" class="defbutton" name="submitform" value=" <?php _e ('Save'); ?> " />388 <input type="submit" name="toggledisplay" id="toggledisplay" value="<?php _ea('Toggle Text'); ?>" /> 389 <input type="submit" name="defaults" value="<?php _ea('Use Defaults'); ?>" /> 390 <input type="submit" class="defbutton" name="submitform" value=" <?php _ea('Save'); ?> " /> 391 391 <input type="hidden" name="action" value="save" /> 392 392 <input type="hidden" name="njform" value="true" /> … … 396 396 <form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo attr($_SERVER['REQUEST_URI']); ?>"> 397 397 <?php wp_nonce_field('kubrick-header'); ?> 398 <input type="button" class="button-secondary" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php echo attr(__('Font Color')); ?>"></input>399 <input type="button" class="button-secondary" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php echo attr(__('Upper Color')); ?>"></input>400 <input type="button" class="button-secondary" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="<?php echo attr(__('Lower Color')); ?>"></input>401 <input type="button" class="button-secondary" name="revert" value="<?php echo attr(__('Revert')); ?>" onclick="kRevert()" />402 <input type="button" class="button-secondary" value="<?php echo attr(__('Advanced')); ?>" onclick="toggleAdvanced()" />398 <input type="button" class="button-secondary" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php _ea('Font Color'); ?>"></input> 399 <input type="button" class="button-secondary" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php _ea('Upper Color'); ?>"></input> 400 <input type="button" class="button-secondary" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="<?php _ea('Lower Color'); ?>"></input> 401 <input type="button" class="button-secondary" name="revert" value="<?php _ea('Revert'); ?>" onclick="kRevert()" /> 402 <input type="button" class="button-secondary" value="<?php _ea('Advanced'); ?>" onclick="toggleAdvanced()" /> 403 403 <input type="hidden" name="action" value="save" /> 404 404 <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo attr(kubrick_header_display()); ?>" /> … … 407 407 <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo attr(kubrick_lower_color()); ?>" /> 408 408 <input type="hidden" name="headerimage" id="headerimage" value="<?php echo attr(kubrick_header_image()); ?>" /> 409 <p class="submit"><input type="submit" name="submitform" class="button-primary" value="<?php echo attr(__('Update Header')); ?>" onclick="cp.hidePopup('prettyplease')" /></p>409 <p class="submit"><input type="submit" name="submitform" class="button-primary" value="<?php _ea('Update Header'); ?>" onclick="cp.hidePopup('prettyplease')" /></p> 410 410 </form> 411 411 <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div> … … 416 416 <label for="advuppercolor"><?php _e('Upper Color (HEX):');?> </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo attr(kubrick_upper_color()); ?>" /><br /> 417 417 <label for="advlowercolor"><?php _e('Lower Color (HEX):'); ?> </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo attr(kubrick_lower_color()); ?>" /><br /> 418 <input type="button" class="button-secondary" name="default" value="<?php echo attr(__('Select Default Colors')); ?>" onclick="kDefaults()" /><br />419 <input type="button" class="button-secondary" onclick="toggleDisplay();return false;" name="pick" id="pick" value="<?php echo attr(__('Toggle Text Display')); ?>"></input><br />418 <input type="button" class="button-secondary" name="default" value="<?php _ea('Select Default Colors'); ?>" onclick="kDefaults()" /><br /> 419 <input type="button" class="button-secondary" onclick="toggleDisplay();return false;" name="pick" id="pick" value="<?php _ea('Toggle Text Display'); ?>"></input><br /> 420 420 </form> 421 421 </div> -
trunk/wp-includes/default-widgets.php
r11160 r11173 853 853 $number = attr( $number ); 854 854 $title = attr( $title ); 855 $url = attr( $url );855 $url = clean_url( $url ); 856 856 $items = (int) $items; 857 857 if ( $items < 1 || 20 < $items ) -
trunk/wp-includes/general-template.php
r11171 r11173 122 122 <div><label class="hidden" for="s">' . __('Search for:') . '</label> 123 123 <input type="text" value="' . attr(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" /> 124 <input type="submit" id="searchsubmit" value="'. attr(__('Search')).'" />124 <input type="submit" id="searchsubmit" value="'. _a('Search') .'" /> 125 125 </div> 126 126 </form>'; -
trunk/wp-includes/post-template.php
r11112 r11173 708 708 $output .= "\t<option value=\"-1\">$show_option_no_change</option>"; 709 709 if ( $show_option_none ) 710 $output .= "\t<option value=\" $option_none_value\">$show_option_none</option>\n";710 $output .= "\t<option value=\"" . attr($option_none_value) . "\">$show_option_none</option>\n"; 711 711 $output .= walk_page_dropdown_tree($pages, $depth, $r); 712 712 $output .= "</select>\n"; … … 1135 1135 $output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post"> 1136 1136 <p>' . __("This post is password protected. To view it please enter your password below:") . '</p> 1137 <p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . _ _("Submit") . '" /></p>1137 <p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . _a("Submit") . '" /></p> 1138 1138 </form> 1139 1139 '; … … 1317 1317 <div class="tablenav"> 1318 1318 <div class="alignleft"> 1319 <input type="submit" class="button-secondary" value="<?php _e ( 'Compare Revisions' ); ?>" />1319 <input type="submit" class="button-secondary" value="<?php _ea( 'Compare Revisions' ); ?>" /> 1320 1320 <input type="hidden" name="action" value="diff" /> 1321 1321 </div>
Note: See TracChangeset
for help on using the changeset viewer.