Changeset 5982 for trunk/wp-includes/comment-template.php
- Timestamp:
- 08/29/2007 11:08:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r5752 r5982 224 224 function get_trackback_url() { 225 225 global $id; 226 $tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . $id; 227 228 if ( '' != get_option('permalink_structure') ) 226 if ( '' != get_option('permalink_structure') ) { 229 227 $tb_url = trailingslashit(get_permalink()) . user_trailingslashit('trackback', 'single_trackback'); 230 228 } else { 229 $tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . $id; 230 } 231 231 return apply_filters('trackback_url', $tb_url); 232 232 } 233 function trackback_url( $display = true ) { 234 if ( $display) 235 echo get_trackback_url(); 236 else 237 return get_trackback_url(); 233 234 function trackback_url($deprecated = true) { // remove backwards compat in 2.4 235 if ($deprecated) echo get_trackback_url(); 236 else return get_trackback_url(); 238 237 } 239 238 … … 251 250 echo '"'."\n"; 252 251 echo ' dc:title="'.str_replace('--', '--', wptexturize(strip_tags(get_the_title()))).'"'."\n"; 253 echo ' trackback:ping="'. trackback_url(0).'"'." />\n";252 echo ' trackback:ping="'.get_trackback_url().'"'." />\n"; 254 253 echo '</rdf:RDF>'; 255 254 }
Note: See TracChangeset
for help on using the changeset viewer.