Skip to content

Commit

Permalink
Merge pull request #1516 from publishpress/feature/#1515_User_type_me…
Browse files Browse the repository at this point in the history
…tadata_displaying_user_id_instead_of_display_name_in_notification

feature/#1515_User_type_metadata_displaying_user_id_instead_of_display_name_in_notification
  • Loading branch information
olatechpro authored Dec 18, 2023
2 parents d6bbde8 + 589e6e9 commit 78a4b7f
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 @@ -505,7 +505,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 78a4b7f

Please sign in to comment.