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