WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 18 months ago

#22986 closed defect (bug)

WP uses header image's GUID as URL — at Version 2

Reported by: bersbers Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Customize Keywords: has-patch needs-testing
Focuses: Cc:

Description (last modified by SergeyBiryukov)

See summary. If I move my site (old domain becoming inaccessible), I cannot use my header images any more since
a) I am not allowed to change GUIDs.
b) GUIDs are used as URLs for header images:

http://core.trac.wordpress.org/browser/trunk/wp-includes/theme.php

1008        foreach ( (array) $headers as $header ) {
1009	                $url = esc_url_raw( $header->guid );

Change History (2)

comment:1 @bersbers3 years ago

I am not sure, but it seems that event newly uploaded files receive a GUID that contains the OLD domain. This means I cannot even re-upload header images, I cannot use any header image after moving a WordPress site. Can this be true?
(Probably not true generally. It does however seem true when I simply re-select the old header images from the media library. So I really need to re-upload ALL header images after moving the site?)

Last edited 3 years ago by bersbers (previous) (diff)

comment:2 @SergeyBiryukov3 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.