@@ 497-516 (lines=20) @@ | ||
494 | ||
495 | // No Blog ID parameter. No Post ID parameter. Depends on globals. |
|
496 | // Expects setup_postdata() to already have been run |
|
497 | function get_the_post_content_for_display() { |
|
498 | global $pages, $page; |
|
499 | ||
500 | $old_pages = $pages; |
|
501 | $old_page = $page; |
|
502 | ||
503 | $content = join( "\n\n", $pages ); |
|
504 | $content = preg_replace( '/<!--more(.*?)?-->/', '', $content ); |
|
505 | $pages = array( $content ); |
|
506 | $page = 1; |
|
507 | ||
508 | ob_start(); |
|
509 | the_content(); |
|
510 | $return = ob_get_clean(); |
|
511 | ||
512 | $pages = $old_pages; |
|
513 | $page = $old_page; |
|
514 | ||
515 | return $return; |
|
516 | } |
|
517 | ||
518 | function get_blog_post( $blog_id, $post_id, $context = 'display' ) { |
|
519 | $blog_id = $this->api->get_blog_id( $blog_id ); |
@@ 428-447 (lines=20) @@ | ||
425 | ||
426 | // No Blog ID parameter. No Post ID parameter. Depends on globals. |
|
427 | // Expects setup_postdata() to already have been run |
|
428 | function get_the_post_content_for_display() { |
|
429 | global $pages, $page; |
|
430 | ||
431 | $old_pages = $pages; |
|
432 | $old_page = $page; |
|
433 | ||
434 | $content = join( "\n\n", $pages ); |
|
435 | $content = preg_replace( '/<!--more(.*?)?-->/', '', $content ); |
|
436 | $pages = array( $content ); |
|
437 | $page = 1; |
|
438 | ||
439 | ob_start(); |
|
440 | the_content(); |
|
441 | $return = ob_get_clean(); |
|
442 | ||
443 | $pages = $old_pages; |
|
444 | $page = $old_page; |
|
445 | ||
446 | return $return; |
|
447 | } |
|
448 | ||
449 | public function get_author() { |
|
450 | if ( 0 == $this->post->post_author ) |