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