From 8fbd65e7f99bc4aa3e76d3826777e529ddeb52ba Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Mon, 30 Jan 2017 18:38:14 +0800 Subject: [PATCH] Add body class for own profile --- core/um-shortcodes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/um-shortcodes.php b/core/um-shortcodes.php index 0d562a83..b865d861 100644 --- a/core/um-shortcodes.php +++ b/core/um-shortcodes.php @@ -118,6 +118,10 @@ class UM_Shortcodes { } } + if( um_is_core_page('user') && um_is_user_himself() ){ + $classes[] = 'um-own-profile'; + } + return $classes; }