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