| @@ 58-66 (lines=9) @@ | ||
| 55 | ||
| 56 | // public $response_format =& $this->post_object_format; |
|
| 57 | ||
| 58 | function __construct( $args ) { |
|
| 59 | if ( is_array( $this->post_object_format ) && isset( $this->post_object_format['format'] ) ) { |
|
| 60 | $this->post_object_format['format'] = get_post_format_strings(); |
|
| 61 | } |
|
| 62 | if ( !$this->response_format ) { |
|
| 63 | $this->response_format =& $this->post_object_format; |
|
| 64 | } |
|
| 65 | parent::__construct( $args ); |
|
| 66 | } |
|
| 67 | ||
| 68 | function the_password_form() { |
|
| 69 | return __( 'This post is password protected.', 'jetpack' ); |
|
| @@ 60-68 (lines=9) @@ | ||
| 57 | ||
| 58 | // public $response_format =& $this->post_object_format; |
|
| 59 | ||
| 60 | function __construct( $args ) { |
|
| 61 | if ( is_array( $this->post_object_format ) && isset( $this->post_object_format['format'] ) ) { |
|
| 62 | $this->post_object_format['format'] = get_post_format_strings(); |
|
| 63 | } |
|
| 64 | if ( !$this->response_format ) { |
|
| 65 | $this->response_format =& $this->post_object_format; |
|
| 66 | } |
|
| 67 | parent::__construct( $args ); |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * Get a post by a specified field and value |
|