Changeset 53666 for branches/6.0/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
- Timestamp:
- 07/05/2022 04:03:10 PM (3 years ago)
- Location:
- branches/6.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0
-
branches/6.0/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
r53333 r53666 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.