| @@ 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 ); |
|
| @@ 439-458 (lines=20) @@ | ||
| 436 | ||
| 437 | // No Blog ID parameter. No Post ID parameter. Depends on globals. |
|
| 438 | // Expects setup_postdata() to already have been run |
|
| 439 | function get_the_post_content_for_display() { |
|
| 440 | global $pages, $page; |
|
| 441 | ||
| 442 | $old_pages = $pages; |
|
| 443 | $old_page = $page; |
|
| 444 | ||
| 445 | $content = join( "\n\n", $pages ); |
|
| 446 | $content = preg_replace( '/<!--more(.*?)?-->/', '', $content ); |
|
| 447 | $pages = array( $content ); |
|
| 448 | $page = 1; |
|
| 449 | ||
| 450 | ob_start(); |
|
| 451 | the_content(); |
|
| 452 | $return = ob_get_clean(); |
|
| 453 | ||
| 454 | $pages = $old_pages; |
|
| 455 | $page = $old_page; |
|
| 456 | ||
| 457 | return $return; |
|
| 458 | } |
|
| 459 | ||
| 460 | public function get_author() { |
|
| 461 | if ( 0 == $this->post->post_author ) |
|