From a914495215fc5c8eb92ade277cf0eff6972e1cf0 Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Fri, 5 May 2023 09:35:21 +0200 Subject: [PATCH] Profile settings: use string instead of constant Follow-up from #304 Since we do not use a constant anywhere else just yet, let's keep using a string in the settings page. --- includes/class-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-admin.php b/includes/class-admin.php index 89ec086..fe44ed4 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -161,7 +161,7 @@ class Admin { } public static function add_profile( $user ) { - $description = get_user_meta( $user->ID, ACTIVITYPUB_USER_DESCRIPTION_KEY, true ); + $description = get_user_meta( $user->ID, 'activitypub_user_description', true ); \load_template( ACTIVITYPUB_PLUGIN_DIR . 'templates/user-settings.php',