Skip to content

Commit

Permalink
- User type metadata displaying user id instead of display name in no…
Browse files Browse the repository at this point in the history
…tification #1515
  • Loading branch information
olatechpro committed Dec 18, 2023
1 parent 5747ab1 commit 589e6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Notifications/Shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ private function get_post_field($post, $field, $attrs)
if (!empty($rel_post) && !is_wp_error($rel_post)) {
$result = $this->get_post_field($rel_post, $meta_sub_field, $attrs);
}
} elseif ('meta-user' == $arr[0]) {
} elseif ('meta-user' == $arr[0] || strpos($meta_name, '_pp_editorial_meta_user') === 0) {
$rel_user = get_user_by('ID', (int)$meta);

if (!empty($rel_user) && !is_wp_error($rel_user)) {
Expand Down

0 comments on commit 589e6e9

Please sign in to comment.