Merge pull request #319 from Automattic/fix/description-key

Profile settings: use string to fetch user description instead of constant
This commit is contained in:
Matthias Pfefferle 2023-05-05 09:41:36 +02:00 committed by GitHub
commit 0deb1304bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,7 @@ class Admin {
} }
public static function add_profile( $user ) { 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( \load_template(
ACTIVITYPUB_PLUGIN_DIR . 'templates/user-settings.php', ACTIVITYPUB_PLUGIN_DIR . 'templates/user-settings.php',