Ticket #11624: 11624.diff
| File 11624.diff, 1.4 KB (added by , 17 years ago) |
|---|
-
wp-includes/post-template.php
15 15 * @uses $id 16 16 */ 17 17 function the_ID() { 18 global $id; 19 echo $id; 18 echo get_the_ID(); 20 19 } 21 20 22 21 /** … … 28 27 * @return unknown 29 28 */ 30 29 function get_the_ID() { 31 global $ id;32 return $ id;30 global $post; 31 return $post->ID; 33 32 } 34 33 35 34 /** … … 178 177 * @return string 179 178 */ 180 179 function get_the_content($more_link_text = null, $stripteaser = 0) { 181 global $ id, $post, $more, $page, $pages, $multipage, $preview, $pagenow;180 global $post, $more, $page, $pages, $multipage, $preview, $pagenow; 182 181 183 182 if ( null === $more_link_text ) 184 183 $more_link_text = __( '(more...)' ); … … 213 212 $output .= $teaser; 214 213 if ( count($content) > 1 ) { 215 214 if ( $more ) { 216 $output .= '<span id="more-' . $ id. '"></span>' . $content[1];215 $output .= '<span id="more-' . $post->ID . '"></span>' . $content[1]; 217 216 } else { 218 217 if ( ! empty($more_link_text) ) 219 $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-$ id\" class=\"more-link\">$more_link_text</a>", $more_link_text );218 $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-$post->ID\" class=\"more-link\">$more_link_text</a>", $more_link_text ); 220 219 $output = force_balance_tags($output); 221 220 } 222 221
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)