[wp-trac] [WordPress Trac] #6492: Guids No Longer Have Permalink Format

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 25 23:00:06 UTC 2010


#6492: Guids No Longer Have Permalink Format
-------------------------------------+--------------------------------------
 Reporter:  brianwhite               |        Owner:  anonymous      
     Type:  enhancement              |       Status:  reopened       
 Priority:  normal                   |    Milestone:  Awaiting Triage
Component:  General                  |      Version:  2.5            
 Severity:  trivial                  |   Resolution:                 
 Keywords:  has-patch guid featured  |  
-------------------------------------+--------------------------------------

Comment(by r-a-y):

 Instead of setting the guid when permalinks are saved.  You could also
 offer developers a filter on "get_the_guid".

 {{{
 function get_the_guid( $id = 0 ) {
         $post = &get_post($id);

         return apply_filters('get_the_guid', $post->guid, $post );
 }
 }}}

 Attached patch above this comment.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/6492#comment:43>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list