Make WordPress Core

Ticket #20657: 20657.5.diff

File 20657.5.diff, 1.7 KB (added by greuben, 12 years ago)
  • wp-admin/custom-header.php

     
    111111                                '<p>' . __( 'This screen is used to customize the header section of your theme.') . '</p>' .
    112112                                '<p>' . __( 'You can choose from the theme&#8217;s default header images, or use one of your own. You can also customize how your Site Title and Tagline are displayed.') . '<p>'
    113113                ) );
    114                
     114
    115115                get_current_screen()->add_help_tab( array(
    116116                        'id'      => 'set-header-image',
    117117                        'title'   => __('Header Image'),
     
    121121                                '<p>' . __( 'If your theme has more than one default header image, or you have uploaded more than one custom header image, you have the option of having WordPress display a randomly different image on each page of your site. Click the &#8220;Random&#8221; radio button next to the Uploaded Images or Default Images section to enable this feature.') . '</p>' .
    122122                                '<p>' . __( 'If you don&#8217;t want a header image to be displayed on your site at all, click the &#8220;Remove Header Image&#8221; button at the bottom of the Header Image section of this page. If you want to re-enable the header image later, you just have to select one of the other image options and click &#8220;Save Changes&#8221;.') . '</p>'
    123123                ) );
    124                
     124
    125125                get_current_screen()->add_help_tab( array(
    126126                        'id'      => 'set-header-text',
    127127                        'title'   => __('Header Text'),
     
    890890                        'guid' => $url,
    891891                        'context' => 'custom-header'
    892892                );
    893                 if ( ! empty( $_POST['new-attachment'] ) )
     893                if ( ! empty( $_POST['new-attachment'] ) && $is_cropped )
    894894                        unset( $object['ID'] );
    895895
    896896                // Update the attachment