Changeset 53665 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
- Timestamp:
- 07/05/2022 04:01:36 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
r53333 r53665 207 207 'content' => wp_kses_post( $raw_pattern->pattern_content ), 208 208 'categories' => array_map( 'sanitize_title', $raw_pattern->category_slugs ), 209 'keywords' => array_map( 'sanitize_t itle', $raw_pattern->keyword_slugs),209 'keywords' => array_map( 'sanitize_text_field', explode( ',', $raw_pattern->meta->wpop_keywords ) ), 210 210 'description' => sanitize_text_field( $raw_pattern->meta->wpop_description ), 211 211 'viewport_width' => absint( $raw_pattern->meta->wpop_viewport_width ), … … 275 275 276 276 'keywords' => array( 277 'description' => __( "The pattern's keyword slugs." ),277 'description' => __( "The pattern's keywords." ), 278 278 'type' => 'array', 279 279 'uniqueItems' => true,
Note: See TracChangeset
for help on using the changeset viewer.