Changeset 15828
- Timestamp:
- 10/17/2010 07:12:34 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r15805 r15828 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> … … 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(); … … 571 576 function step_2() { 572 577 check_admin_referer('custom-header-upload', '_wpnonce-custom-header-upload'); 578 if ( ! current_theme_supports( 'custom-header-uploads' ) ) 579 wp_die( 'Cheatin’ uh?' ); 580 573 581 $overrides = array('test_form' => false); 574 582 $file = wp_handle_upload($_FILES['import'], $overrides); … … 651 659 function step_3() { 652 660 check_admin_referer('custom-header-crop-image'); 661 if ( ! current_theme_supports( 'custom-header-uploads' ) ) 662 wp_die( 'Cheatin’ uh?' ); 663 653 664 if ( $_POST['oitar'] > 1 ) { 654 665 $_POST['x1'] = $_POST['x1'] * $_POST['oitar']; -
trunk/wp-includes/theme.php
r15803 r15828 1468 1468 1469 1469 add_theme_support( 'custom-header' ); 1470 add_theme_support( 'custom-header-uploads' ); 1470 1471 1471 1472 if ( ! is_admin() )
Note: See TracChangeset
for help on using the changeset viewer.