We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2416b76 + bd7d048 commit 255115dCopy full SHA for 255115d
1 file changed
classes/rest/class-stats.php
@@ -162,12 +162,12 @@ public function get_stats( \WP_REST_Request $request ) {
162
foreach ( $ravis_recommendations as $recommendation ) {
163
$r = [
164
'id' => $recommendation->task_id,
165
- 'title' => $recommendation->title,
+ 'title' => $recommendation->post_title,
166
'url' => $recommendation->url,
167
- 'provider_id' => $recommendation->provider_id,
+ 'provider_id' => $recommendation->get_provider_id(),
168
];
169
170
- if ( 'user' === $recommendation->provider_id ) {
+ if ( 'user' === $recommendation->get_provider_id() ) {
171
$r['points'] = (int) $recommendation->points;
172
}
173
$data['recommendations'][] = $r;
0 commit comments