[wp-trac] [WordPress Trac] #32143: wpLink function getAttrs() missing link-text
WordPress Trac
noreply at wordpress.org
Sat Nov 7 00:02:56 UTC 2015
#32143: wpLink function getAttrs() missing link-text
-------------------------+------------------------------
Reporter: xwolf | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.2
Severity: normal | Resolution:
Keywords: | Focuses: javascript
-------------------------+------------------------------
Comment (by thesarahkemp):
The title here is also used for the ACF Link Picker field type. Currently
I can't add "Related links" to my site because the title doesn't fill in
because it is no longer present in the getAttrs() function. I don't mind
it not being there and am happy to adjust my code to get it from somewhere
else... is there somewhere else I can get it? I can't figure out a way to
access the 'inputs' variable that is used throughout wplink to access the
Title value.
I realize you can never count on reusing a piece of the core in a plugin,
but it seems confusing and unnecesssary to rewrite wplink just to use it
in practically the same way a little further down the page.
Just my use-case and upvote.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32143#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list