WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 4 months ago

#41118 closed enhancement (wontfix)

Add post type classes to internal link search results

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

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
4 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

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.