diff --git a/api/options/rest-api.php b/api/options/rest-api.php index b7f68b00ae5..271518383d8 100644 --- a/api/options/rest-api.php +++ b/api/options/rest-api.php @@ -58,7 +58,7 @@ function wca_test_helper_get_options( $request ) { $search = $request->get_param( 'search' ); $query = " - select option_id, option_name, autoload + select option_id, option_name, option_value, autoload from {$wpdb->prefix}options "; diff --git a/src/options/index.js b/src/options/index.js index e7e0c2e0853..55c8c35220e 100644 --- a/src/options/index.js +++ b/src/options/index.js @@ -13,6 +13,14 @@ import { STORE_KEY } from './data/constants'; import { default as OptionEditor } from './OptionEditor'; import './data'; +function shorten( input ) { + if ( input.length > 20 ) { + return input.substring( 0, 20 ) + '...'; + } + + return input; +} + function Options( { options, getOptions, @@ -51,7 +59,7 @@ function Options( { const renderLoading = () => { return (