json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 1014-1023 (lines=10) @@
|
| 1011 |
|
return $input; |
| 1012 |
|
} |
| 1013 |
|
|
| 1014 |
|
protected function should_load_theme_functions( $post_id = null ) { |
| 1015 |
|
if ( empty( $post_id ) ) { |
| 1016 |
|
$input = $this->input( true ); |
| 1017 |
|
$type = $input['type']; |
| 1018 |
|
} else { |
| 1019 |
|
$type = get_post_type( $post_id ); |
| 1020 |
|
} |
| 1021 |
|
|
| 1022 |
|
return ! empty( $type ) && ! in_array( $type, array( 'post', 'revision' ) ); |
| 1023 |
|
} |
| 1024 |
|
} |
| 1025 |
|
|
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 868-877 (lines=10) @@
|
| 865 |
|
return $return; |
| 866 |
|
} |
| 867 |
|
|
| 868 |
|
protected function should_load_theme_functions( $post_id = null ) { |
| 869 |
|
if ( empty( $post_id ) ) { |
| 870 |
|
$input = $this->input( true ); |
| 871 |
|
$type = $input['type']; |
| 872 |
|
} else { |
| 873 |
|
$type = get_post_type( $post_id ); |
| 874 |
|
} |
| 875 |
|
|
| 876 |
|
return ! empty( $type ) && ! in_array( $type, array( 'post', 'revision' ) ); |
| 877 |
|
} |
| 878 |
|
} |
| 879 |
|
|