[wp-meta] [Making WordPress.org] #1950: Add support for custom titles on support forums
Making WordPress.org
noreply at wordpress.org
Thu Sep 29 11:43:10 UTC 2016
#1950: Add support for custom titles on support forums
------------------------------+--------------------------
Reporter: SergeyBiryukov | Owner: coffee2code
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Support Forums | Resolution: fixed
Keywords: has-patch commit |
------------------------------+--------------------------
Comment (by netweb):
Replying to [comment:13 coffee2code]:
> I applied [attachment:meta-1950.patch] as the current approach for this.
However, `bbp_displayed_user_field()` doesn't reliably show the custom
title, so I had to get it more directly via `get_user_option()`. I haven't
investigated this too much yet.
Looks like `bbp_sanitize_displayed_user_field()` might be the cause here
in ''not playing well with other user custom options'', will need more
investigation.
> @netweb: I like the simplicity of leveraging
`wp_get_user_contact_methods()` for adding and handling the field for the
custom title from your patch, but it's unsemantic as the custom title
isn't a contact method. Maybe if there was an identical but generic way
for dealing with additional user fields?
Sounds good :+1, maybe in WP core, available for any plugin or theme to
extend?
> I also agree with @SergeyBiryukov in that the custom title shouldn't
fall under "Contact Info", though "Name" isn't a perfect fit either.
Cool, that was where `bbp_displayed_user_field()` put them all ;)
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1950#comment:16>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list