Skip to content

Commit 66388a5

Browse files
committed
prpl_external_link_url is no longer necessary as a post-meta
1 parent 6bc56d7 commit 66388a5

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

classes/class-suggested-tasks-db.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ public function update_recommendation( $id, $data ) {
175175
switch ( $key ) {
176176
case 'points':
177177
case 'prpl_points':
178-
case 'prpl_external_link_url':
179178
$update_meta[ 'prpl_' . \str_replace( 'prpl_', '', (string) $key ) ] = $value;
180179
break;
181180

classes/class-suggested-tasks.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,6 @@ public function register_post_type() {
309309
'show_in_rest' => true,
310310
'default' => 0,
311311
],
312-
'prpl_external_link_url' => [
313-
'type' => 'string',
314-
'single' => true,
315-
'show_in_rest' => true,
316-
],
317312
];
318313

319314
foreach ( $rest_meta_fields as $key => $field ) {

0 commit comments

Comments
 (0)