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 /home/nimaghor/public_html/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php:17
Stack trace:
#0 /home/nimaghor/public_html/wp-settings.php(292): require()
#1 /home/nimaghor/public_html/wp-config.php(86): require_once('/home/nimaghor/...')
#2 /home/nimaghor/public_html/wp-load.php(50): require_once('/home/nimaghor/...')
#3 /home/nimaghor/public_html/wp-blog-header.php(13): require_once('/home/nimaghor/...')
#4 /home/nimaghor/public_html/index.php(17): require('/home/nimaghor/...')
#5 {main}
thrown in /home/nimaghor/public_html/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 /home/nimaghor/public_html/wp-includes/l10n.php:856
Stack trace:
#0 /home/nimaghor/public_html/wp-includes/l10n.php(959): load_textdomain('default', '/home/nimaghor/...', 'fa_IR')
#1 /home/nimaghor/public_html/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main}
thrown in /home/nimaghor/public_html/wp-includes/l10n.php on line 856