Changes in trunk/wp-admin/custom-header.php [15248:16061]
- File:
-
- 1 edited
-
trunk/wp-admin/custom-header.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r15248 r16061 457 457 </td> 458 458 </tr> 459 459 <?php if ( current_theme_supports( 'custom-header-uploads' ) ) : ?> 460 460 <tr valign="top"> 461 461 <th scope="row"><?php _e( 'Upload Image' ); ?></th> … … 469 469 <input type="hidden" name="action" value="save" /> 470 470 <?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ) ?> 471 < input type="submit" class="button" value="<?php esc_attr_e( 'Upload' ); ?>" />471 <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?> 472 472 </p> 473 473 </form> 474 474 </td> 475 475 </tr> 476 <?php endif; ?> 476 477 </tbody> 477 478 </table> … … 484 485 <th scope="row"><?php _e( 'Default Images' ); ?></th> 485 486 <td> 487 <?php if ( current_theme_supports( 'custom-header-uploads' ) ) : ?> 486 488 <p><?php _e( 'If you don‘t want to upload your own image, you can use one of these cool headers.' ) ?></p> 489 <?php else: ?> 490 <p><?php _e( 'You can use one of these cool headers.' ) ?> 491 <?php endif; ?> 487 492 <?php 488 493 $this->show_default_header_selector(); … … 497 502 <td> 498 503 <p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ) ?></p> 499 < input type="submit" class="button" name="removeheader" value="<?php esc_attr_e( 'Remove Header Image' ); ?>" />504 <?php submit_button( __( 'Remove Header Image' ), 'button', 'removeheader', false ); ?> 500 505 </td> 501 506 </tr> … … 507 512 <td> 508 513 <p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ) ?></p> 509 < input type="submit" class="button" name="resetheader" value="<?php esc_attr_e( 'Restore Original Header Image' ); ?>" />514 <?php submit_button( __( 'Restore Original Header Image' ), 'button', 'resetheader', false ); ?> 510 515 </td> 511 516 </tr> … … 546 551 <td> 547 552 <p><?php _e( 'This will restore the original header text. You will not be able to restore any customizations.' ) ?></p> 548 < input type="submit" class="button" name="resettext" value="<?php esc_attr_e( 'Restore Original Header Text' ); ?>" />553 <?php submit_button( __( 'Restore Original Header Text' ), 'button', 'resettext', false ); ?> 549 554 </td> 550 555 </tr> … … 555 560 <?php endif; 556 561 562 do_action( 'custom_header_options' ); 563 557 564 wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> 558 <p class="submit"><input type="submit" class="button-primary" name="save-header-options" value="<?php esc_attr_e( 'Save Changes' ); ?>" /></p> 565 566 <?php submit_button( null, 'primary', 'save-header-options' ); ?> 559 567 </form> 560 568 </div> … … 569 577 function step_2() { 570 578 check_admin_referer('custom-header-upload', '_wpnonce-custom-header-upload'); 579 if ( ! current_theme_supports( 'custom-header-uploads' ) ) 580 wp_die( 'Cheatin’ uh?' ); 581 571 582 $overrides = array('test_form' => false); 572 583 $file = wp_handle_upload($_FILES['import'], $overrides); … … 627 638 </div> 628 639 629 <p class="submit">630 640 <input type="hidden" name="x1" id="x1" value="0"/> 631 641 <input type="hidden" name="y1" id="y1" value="0"/> … … 635 645 <input type="hidden" name="oitar" id="oitar" value="<?php echo esc_attr( $oitar ); ?>" /> 636 646 <?php wp_nonce_field( 'custom-header-crop-image' ) ?> 637 <input type="submit" class="button-primary" value="<?php esc_attr_e( 'Crop and Publish' ); ?>" /> 647 648 <?php submit_button( __( 'Crop and Publish' ) ); ?> 638 649 </p> 639 650 </form> … … 649 660 function step_3() { 650 661 check_admin_referer('custom-header-crop-image'); 662 if ( ! current_theme_supports( 'custom-header-uploads' ) ) 663 wp_die( 'Cheatin’ uh?' ); 664 651 665 if ( $_POST['oitar'] > 1 ) { 652 666 $_POST['x1'] = $_POST['x1'] * $_POST['oitar'];
Note: See TracChangeset
for help on using the changeset viewer.