← All changes
|
inc/jwt/rest-api/version1/class-lp-rest-posts-controller.php
+1
-1
4.1.7.3
→
4.4.9
View file →
| @@ -206,9 +206,9 @@ | ||
| 206 | 206 | if ( isset( $request['id'] ) ) { |
| 207 | 207 | $existing_post = get_post( $id ); |
| 208 | 208 | |
| 209 | 209 | if ( empty( $existing_post ) || empty( $existing_post->ID ) || $this->post_type !== $existing_post->post_type ) { |
| 210 | - return new WP_Error( 'rest_invalid_course', __( 'Invalid Course' ), array( 'status' => 404 ) ); | |
| 210 | + return new WP_Error( 'rest_invalid_course', __( 'Invalid Course', 'learnpress' ), array( 'status' => 404 ) ); | |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | $prepared_post->ID = $existing_post->ID; |
| 214 | 214 | $current_status = $existing_post->post_status; |