PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 All 141 releases
← All changes | inc/jwt/rest-api/version1/class-lp-rest-section-items-v1-controller.php +8 -8 4.1.7 → 4.4.9 View file →
@@ -33,9 +33,9 @@
33 33
34 34 $course_id = LP_Section_DB::getInstance()->get_course_id_by_section( $request['section_id'] );
35 35
36 36 if ( ! $course_id ) {
37 - return new WP_Error( 'lp_section_not_course', __( 'Please assigned section to Course.', 'learnpress' ), array( 'status' => rest_authorization_required_code() ) );
37 + return new WP_Error( 'lp_section_not_course', __( 'Please assign a section to the Course.', 'learnpress' ), array( 'status' => rest_authorization_required_code() ) );
38 38 }
39 39
40 40 $post = get_post( $course_id );
41 41
@@ -40,9 +40,9 @@
40 40 $post = get_post( $course_id );
41 41
42 42 $post_status_obj = get_post_status_object( $post->post_status );
43 43 if ( ! $post_status_obj || ! $post_status_obj->public ) {
44 - return new WP_Error( 'lp_section_not_public', __( 'Course is not public', 'learnpress' ), array( 'status' => rest_authorization_required_code() ) );
44 + return new WP_Error( 'lp_section_not_public', __( 'The course is not public', 'learnpress' ), array( 'status' => rest_authorization_required_code() ) );
45 45 }
46 46
47 47 return true;
48 48 }
@@ -209,9 +209,9 @@
209 209 'title' => 'learnpress_sections',
210 210 'type' => 'object',
211 211 'properties' => array(
212 212 'id' => array(
213 - 'description' => __( 'Unique identifier for the resource.', 'learnpress' ),
213 + 'description' => __( 'A unique identifier for the resource.', 'learnpress' ),
214 214 'type' => 'integer',
215 215 'context' => array( 'view', 'edit' ),
216 216 'readonly' => true,
217 217 ),
@@ -311,9 +311,9 @@
311 311 $params['context'] = $this->get_context_param();
312 312 $params['context']['default'] = 'view';
313 313
314 314 $params['page'] = array(
315 - 'description' => __( 'Current page of the collection.', 'learnpress' ),
315 + 'description' => __( 'The current page of the collection.', 'learnpress' ),
316 316 'type' => 'integer',
317 317 'default' => 1,
318 318 'sanitize_callback' => 'absint',
319 319 'validate_callback' => 'rest_validate_request_arg',
@@ -319,9 +319,9 @@
319 319 'validate_callback' => 'rest_validate_request_arg',
320 320 'minimum' => 1,
321 321 );
322 322 $params['per_page'] = array(
323 - 'description' => __( 'Maximum number of items to be returned in result set.', 'learnpress' ),
323 + 'description' => __( 'The maximum number of items to be returned in the result set.', 'learnpress' ),
324 324 'type' => 'integer',
325 325 'default' => 10,
326 326 'minimum' => 1,
327 327 'maximum' => 100,
@@ -328,9 +328,9 @@
328 328 'sanitize_callback' => 'absint',
329 329 'validate_callback' => 'rest_validate_request_arg',
330 330 );
331 331 $params['order'] = array(
332 - 'description' => __( 'Order sort attribute ascending or descending.', 'learnpress' ),
332 + 'description' => __( 'Sorting attributes in ascending or descending order.', 'learnpress' ),
333 333 'type' => 'string',
334 334 'default' => 'asc',
335 335 'enum' => array( 'asc', 'desc' ),
336 336 'validate_callback' => 'rest_validate_request_arg',
@@ -341,9 +341,9 @@
341 341 'sanitize_callback' => 'sanitize_text_field',
342 342 'validate_callback' => 'rest_validate_request_arg',
343 343 );
344 344 $params['exclude'] = array(
345 - 'description' => __( 'Ensure result set excludes specific IDs.', 'learnpress' ),
345 + 'description' => __( 'Ensure the result set excludes specific IDs.', 'learnpress' ),
346 346 'type' => 'array',
347 347 'items' => array(
348 348 'type' => 'integer',
349 349 ),
@@ -350,9 +350,9 @@
350 350 'default' => array(),
351 351 'sanitize_callback' => 'wp_parse_id_list',
352 352 );
353 353 $params['include'] = array(
354 - 'description' => __( 'Limit result set to specific ids.', 'learnpress' ),
354 + 'description' => __( 'Limit the result set to specific IDs.', 'learnpress' ),
355 355 'type' => 'array',
356 356 'items' => array(
357 357 'type' => 'integer',
358 358 ),