Skip to content

Commit 1056810

Browse files
authored
Admin: Fix aka saving (#1798)
1 parent 6183d87 commit 1056810

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
"Account Aliases" for get saved correctly again and no longer return empty.

includes/wp-admin/class-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public static function save_user_settings( $user_id ) {
153153

154154
// User options that should be processed with `sanitize_textarea_field()`.
155155
$textarea_field_user_options = array(
156-
'activitypub_blog_user_also_known_as',
156+
'activitypub_also_known_as',
157157
'activitypub_description',
158158
);
159159

includes/wp-admin/class-user-settings-fields.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function register_settings() {
8787
array( self::class, 'also_known_as_callback' ),
8888
'activitypub_user_settings',
8989
'activitypub_user_profile',
90-
array( 'label_for' => 'activitypub_blog_user_also_known_as' )
90+
array( 'label_for' => 'activitypub_also_known_as' )
9191
);
9292
}
9393

@@ -262,8 +262,8 @@ public static function also_known_as_callback() {
262262
?>
263263
<textarea
264264
class="large-text"
265-
name="activitypub_blog_user_also_known_as"
266-
id="activitypub_blog_user_also_known_as"
265+
name="activitypub_also_known_as"
266+
id="activitypub_also_known_as"
267267
rows="5"
268268
><?php echo \esc_textarea( implode( PHP_EOL, (array) $also_known_as ) ); ?></textarea>
269269
<p class="description">

0 commit comments

Comments
 (0)