[wp-trac] [WordPress Trac] #4800: Trackback function cleanup

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 22 19:04:46 GMT 2007


#4800: Trackback function cleanup
--------------------------+-------------------------------------------------
 Reporter:  Otto42        |       Owner:  anonymous            
     Type:  enhancement   |      Status:  new                  
 Priority:  lowest        |   Milestone:  2.4 (future)         
Component:  Optimization  |     Version:  2.3                  
 Severity:  trivial       |    Keywords:  has-patch 2nd-opinion
--------------------------+-------------------------------------------------
 The trackback_url functions are a bit haphazard. This is a patch to clean
 the up and bring them somewhat in line with the rest of the code.

 trackback_url() accepts a $display parameter which is pointless when it's
 just using the get_trackback_url() function to do all the work.

 get_trackback_url() set the trackback url to the default setting, then set
 it again to the correct URL if using permalinks. A minor optimization is
 to use an else{} to set it correctly in the first place and avoid the
 extra string work and function calls.

 Minor optimizations, but still, we should try to keep things consistent
 and fast.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4800>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list