Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Make sure these methods are explicitly identified #268

Merged
merged 1 commit into from
Jun 1, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/class-wp-json-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ protected function check_edit_permission( $post ) {
* - any other fields supported by wp_insert_post()
* @return array Post data (see {@see WP_JSON_Posts::get_post})
*/
function new_post( $data ) {
public function new_post( $data ) {
unset( $data['ID'] );

$result = $this->insert_post( $data );
Expand Down Expand Up @@ -360,7 +360,7 @@ public function get_post( $id, $context = 'view' ) {
* @param array $_headers Header data
* @return true on success
*/
function edit_post( $id, $data, $_headers = array() ) {
public function edit_post( $id, $data, $_headers = array() ) {
$id = (int) $id;

if ( empty( $id ) ) {
Expand Down