Changeset 5982
- Timestamp:
- 08/29/2007 11:08:44 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/default/attachment.php
r5388 r5982 33 33 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 34 34 // Both Comments and Pings are open ?> 35 You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url( true); ?>" rel="trackback">trackback</a> from your own site.35 You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site. 36 36 37 37 <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 38 38 // Only Pings are Open ?> 39 Responses are currently closed, but you can <a href="<?php trackback_url( true); ?> " rel="trackback">trackback</a> from your own site.39 Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site. 40 40 41 41 <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { -
trunk/wp-content/themes/default/single.php
r5147 r5982 32 32 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 33 33 // Both Comments and Pings are open ?> 34 You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url( true); ?>" rel="trackback">trackback</a> from your own site.34 You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site. 35 35 36 36 <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { 37 37 // Only Pings are Open ?> 38 Responses are currently closed, but you can <a href="<?php trackback_url( true); ?> " rel="trackback">trackback</a> from your own site.38 Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site. 39 39 40 40 <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { -
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.