Opened 9 years ago
Closed 8 years ago
#37321 closed defect (bug) (fixed)
Improve documentation of user_can_richedit()
Reported by: | swissspidy | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | good-first-bug has-patch commit |
Focuses: | docs | Cc: |
Description
The whole docblock for user_can_richedit()
needs a bit of an overhaul. Same goes for the user_can_richedit
filter.
There are some typos, like WYSIWIG should be WYSIWYG and users browser should be user's browser.
The return value needs to be documented properly, as well as the global variables referenced.
Also, the wording can be improved a bit. For example, Whether the user can access the visual editor. sounds better than Whether the user should have a WYSIWIG editor.
See https://core.trac.wordpress.org/browser/trunk/src/wp-includes/general-template.php?rev=38029#L2875
Attachments (4)
Change History (12)
Note: See
TracTickets for help on using
tickets.
Clarified descriptions, added $is_edge