| | |
| | | |
| | | $table->setKeys([ |
| | | ['key' => 'PRIMARY', 'value' => '(`id`)'], |
| | | ['key' => 'UNIQUE', 'value' => '(`profile_id`, `term_id`, `start_date`)'], |
| | | ['key' => 'UNIQUE', 'value' => 'profile_term_date (`profile_id`, `term_id`, `start_date`)'], |
| | | 'content_role (`term_id`, `role`)', |
| | | 'user_id (`user_id`)', |
| | | 'profile_id (`profile_id`)', |
| | |
| | | return; |
| | | } |
| | | |
| | | $user = get_post_meta($object_id, BASE.'link', true); |
| | | $user = get_post_meta($object_id, BASE.'profile_link', true); |
| | | if (empty($author)) { |
| | | $user = get_post($object_id)->post_author??false; |
| | | if (!$user) { |