[wp-trac] [WordPress Trac] #36928: GUID prepended with http://

WordPress Trac noreply at wordpress.org
Tue May 24 05:45:16 UTC 2016


#36928: GUID prepended with http://
--------------------------+-----------------------------
 Reporter:  keithcancel   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Feeds         |    Version:  4.5.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I noticed that when I update/save a post with a non-url guid, that
 wordpress prepends http:// to the front of the guid. However, I have not
 found a mechanism for changing this behavior. When found ticket #31080 I
 hoped that would fix the issue. I am also confused since reading the docs
 it says nothing about the guid needing to be a url.

 I tried the the suggested snippet of code with slight variations to no
 avail.
 {{{
 remove_filter( 'the_guid', 'esc_url' );

 function escape_the_guid($guid){
     //tried other things before returning.
     return $guid;
 }
 add_filter( 'the_guid', 'escape_the_guid' );
 }}}


 Lastly, why is there not a unique constraint on the guid column?

 This is a related to #31080, #18395

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36928>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list