Changeset 53675 for branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
- Timestamp:
- 07/06/2022 04:26:08 PM (4 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
r51317 r53675 211 211 'content' => wp_kses_post( $raw_pattern->pattern_content ), 212 212 'categories' => array_map( 'sanitize_title', $raw_pattern->category_slugs ), 213 'keywords' => array_map( 'sanitize_t itle', $raw_pattern->keyword_slugs),213 'keywords' => array_map( 'sanitize_text_field', explode( ',', $raw_pattern->meta->wpop_keywords ) ), 214 214 'description' => sanitize_text_field( $raw_pattern->meta->wpop_description ), 215 215 'viewport_width' => absint( $raw_pattern->meta->wpop_viewport_width ), … … 279 279 280 280 'keywords' => array( 281 'description' => __( "The pattern's keyword slugs." ),281 'description' => __( "The pattern's keywords." ), 282 282 'type' => 'array', 283 283 'uniqueItems' => true,
Note: See TracChangeset
for help on using the changeset viewer.