[wp-trac] [WordPress Trac] #32143: wpLink function getAttrs() missing link-text
WordPress Trac
noreply at wordpress.org
Tue Nov 24 01:38:12 UTC 2020
#32143: wpLink function getAttrs() missing link-text
-------------------------------+------------------------------
Reporter: xwolf | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.2
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: javascript
-------------------------------+------------------------------
Changes (by noisysocks):
* keywords: => reporter-feedback
Comment:
Agree with @SergeyBiryukov that the text isn't a link attribute and
therefore doesn't belong in `getAttrs()`.
Would adding a new function e.g. `getText()` help?
Is this functionality still desirable in light of the block editor and its
link components?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32143#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list