| @@ 433-452 (lines=20) @@ | ||
| 430 | ||
| 431 | // No Blog ID parameter. No Post ID parameter. Depends on globals. |
|
| 432 | // Expects setup_postdata() to already have been run |
|
| 433 | function get_the_post_content_for_display() { |
|
| 434 | global $pages, $page; |
|
| 435 | ||
| 436 | $old_pages = $pages; |
|
| 437 | $old_page = $page; |
|
| 438 | ||
| 439 | $content = join( "\n\n", $pages ); |
|
| 440 | $content = preg_replace( '/<!--more(.*?)?-->/', '', $content ); |
|
| 441 | $pages = array( $content ); |
|
| 442 | $page = 1; |
|
| 443 | ||
| 444 | ob_start(); |
|
| 445 | the_content(); |
|
| 446 | $return = ob_get_clean(); |
|
| 447 | ||
| 448 | $pages = $old_pages; |
|
| 449 | $page = $old_page; |
|
| 450 | ||
| 451 | return $return; |
|
| 452 | } |
|
| 453 | ||
| 454 | public function get_author() { |
|
| 455 | if ( 0 == $this->post->post_author ) |
|
| @@ 473-492 (lines=20) @@ | ||
| 470 | ||
| 471 | // No Blog ID parameter. No Post ID parameter. Depends on globals. |
|
| 472 | // Expects setup_postdata() to already have been run |
|
| 473 | function get_the_post_content_for_display() { |
|
| 474 | global $pages, $page; |
|
| 475 | ||
| 476 | $old_pages = $pages; |
|
| 477 | $old_page = $page; |
|
| 478 | ||
| 479 | $content = join( "\n\n", $pages ); |
|
| 480 | $content = preg_replace( '/<!--more(.*?)?-->/', '', $content ); |
|
| 481 | $pages = array( $content ); |
|
| 482 | $page = 1; |
|
| 483 | ||
| 484 | ob_start(); |
|
| 485 | the_content(); |
|
| 486 | $return = ob_get_clean(); |
|
| 487 | ||
| 488 | $pages = $old_pages; |
|
| 489 | $page = $old_page; |
|
| 490 | ||
| 491 | return $return; |
|
| 492 | } |
|
| 493 | ||
| 494 | function get_blog_post( $blog_id, $post_id, $context = 'display' ) { |
|
| 495 | $blog_id = $this->api->get_blog_id( $blog_id ); |
|