Make WordPress Core


Ignore:
Timestamp:
11/10/2020 08:24:38 PM (5 years ago)
Author:
helen
Message:

Editor: Display short description from block directory in results.

Props dd32, ryelle.
Fixes #51212.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php

    r49108 r49559  
    126126            'name'                => $block_data['name'],
    127127            'title'               => ( $block_data['title'] ? $block_data['title'] : $plugin['name'] ),
    128             'description'         => wp_trim_words( $plugin['description'], 30, '...' ),
     128            'description'         => wp_trim_words( $plugin['short_description'], 30, '...' ),
    129129            'id'                  => $plugin['slug'],
    130130            'rating'              => $plugin['rating'] / 20,
Note: See TracChangeset for help on using the changeset viewer.