lt set by a specific number of items.' ),
'type' => 'integer',
);
$query_params['order'] = array(
'description' => __( 'Order sort attribute ascending or descending.' ),
'type' => 'string',
'default' => 'desc',
'enum' => array( 'asc', 'desc' ),
);
$query_params['orderby'] = array(
'description' => __( 'Sort collection by object attribute.' ),
'type' => 'string',
'default' => 'date',
'enum' => array(
'date',
'id',
'include',
'relevance',
'slug',
'include_slugs',
'title',
),
);
return $query_params;
}
/**
* Checks the post excerpt and prepare it for single post output.
*
* @since 4.7.0
*
* @param string $excerpt The post excerpt.
* @param WP_Post $post Post revision object.
* @return string Prepared excerpt or empty string.
*/
protected function prepare_excerpt_response( $excerpt, $post ) {
/** This filter is documented in wp-includes/post-template.php */
$excerpt = apply_filters( 'the_excerpt', $excerpt, $post );
if ( empty( $excerpt ) ) {
return '';
}
return $excerpt;
}
}
Fatal error: Uncaught Error: Class 'WP_REST_Revisions_Controller' not found in /var/www/html/hospitalnacoes.com.br/web/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php:17
Stack trace:
#0 /var/www/html/hospitalnacoes.com.br/web/wp-settings.php(292): require()
#1 /var/www/html/hospitalnacoes.com.br/web/wp-config.php(105): require_once('/var/www/html/h...')
#2 /var/www/html/hospitalnacoes.com.br/web/wp-load.php(50): require_once('/var/www/html/h...')
#3 /var/www/html/hospitalnacoes.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/h...')
#4 /var/www/html/hospitalnacoes.com.br/web/index.php(17): require('/var/www/html/h...')
#5 {main}
thrown in /var/www/html/hospitalnacoes.com.br/web/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php on line 17
Fatal error: Uncaught Error: Call to a member function set() on null in /var/www/html/hospitalnacoes.com.br/web/wp-includes/l10n.php:856
Stack trace:
#0 /var/www/html/hospitalnacoes.com.br/web/wp-includes/l10n.php(959): load_textdomain('default', '/var/www/html/h...', 'pt_BR')
#1 /var/www/html/hospitalnacoes.com.br/web/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main}
thrown in /var/www/html/hospitalnacoes.com.br/web/wp-includes/l10n.php on line 856