Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@14924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1716,7 +1716,7 @@ function require_if_theme_supports( $feature, $include) {
|
||||
|
||||
/**
|
||||
* Checks an attachment being deleted to see if it's a header or background image.
|
||||
*
|
||||
*
|
||||
* If true it removes the theme modification which would be pointing at the deleted
|
||||
* attachment
|
||||
*
|
||||
@@ -1728,7 +1728,7 @@ function _delete_attachment_theme_mod( $id ) {
|
||||
$attachment_image = wp_get_attachment_url( $id );
|
||||
$header_image = get_header_image();
|
||||
$background_image = get_background_image();
|
||||
|
||||
|
||||
if ( $header_image && $header_image == $attachment_image )
|
||||
remove_theme_mod( 'header_image' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user