Ticket #47824: 47824-tw.patch
| File 47824-tw.patch, 1003 bytes (added by , 7 years ago) |
|---|
-
post-template.php
236 236 * Display the post content. 237 237 * 238 238 * @since 0.71 239 * @since 5.3.2 Added the `$post` parameter. 239 240 * 240 241 * @param string $more_link_text Optional. Content for when there is more text. 241 242 * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default is false. 243 * @param WP_POST|object|int $post Optional. WP_POST instance or Post ID/object. Default is null and falls back to the global $post object. 242 244 */ 243 function the_content( $more_link_text = null, $strip_teaser = false ) { 244 $content = get_the_content( $more_link_text, $strip_teaser ); 245 function the_content( $more_link_text = null, $strip_teaser = false, $post = null ) { 246 if( $post === null ) { global $post; } 247 $content = get_the_content( $more_link_text, $strip_teaser, $post ); 245 248 246 249 /** 247 250 * Filters the post content.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)