Make WordPress Core

Opened 9 years ago

Closed 7 years ago

#41118 closed enhancement (wontfix)

Add post type classes to internal link search results

Reported by: guidod Owned by:
Priority: normal Milestone:
Component: Editor Version: 4.9
Severity: normal Keywords:
Cc: Focuses: ui, administration

Description

Would be useful to have post-type classes (and maybe others, like post-status or whether the post type is hierarchical or not) in the internal link search results of the post editor. Currently the output looks like this:

<li class="alternate selected"><input type="hidden" class="item-permalink" value="http://example.com/"><span class="item-title">Example</span><span class="item-info">Page</span></li>

I believe there is no hook that would allow one to add post type classes to this output, (I know about the wp_link_query filter that can change the query results, but it can't add classes to the LI).

(Use case: adding custom color indentations or other styles to distinguish important post types from non-important post types in these results).

Change History (1)

#1 @pento
7 years ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

Thank you for the suggestion!

Given that development of the editor has move to the block editor, I don't expect we'll implement this at any point.

Note: See TracTickets for help on using tickets.